Closed Bug 199540 Opened 21 years ago Closed 21 years ago

Filter on multiple instances of "Received" header

Categories

(Thunderbird :: Preferences, enhancement)

x86
All
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 124641

People

(Reporter: zzxc, Assigned: naving)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3; zzxc.net) Gecko/20030312 Netscape/7.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

Mailnews does not filter the received header properly.  It only filters on the
first instance of it.  For example, consider the following header:

Received: from deleted.invalid (0.0.0.0) by localhost;
   9 Mar 03 13:16:48 -0500
Received: from 0.0.0.0  (EHLO deleted.invalid) (0.0.0.0)
  by mta180.mail.scd.yahoo.com with SMTP; 09 Mar 2003 07:43:12 -0800 (PST)
Received: from n37.grp.scd.yahoo.com (n37.grp.scd.yahoo.com [66.218.66.105])
	by deleted.invalid with SMTP id h29FhBZ71811
	for <MY-EMAIL-ADDRESS@invalid>; Sun, 9 Mar 2003 08:43:12 -0700 (MST)
Received: from [0.0.0.0] by n37.grp.scd.yahoo.com with NNFMP; 09 Mar 2003
15:43:02 -0000
X-Sender: DELETED
X-Apparently-To: DELETED
Received: (EGP: mail-8_2_6_1); 9 Mar 2003 15:43:00 -0000
Received: (qmail 87955 invoked from network); 9 Mar 2003 15:42:59 -0000
Received: from unknown (0.0.0.0)
  by m9.grp.scd.yahoo.com with QMQP; 9 Mar 2003 15:42:59 -0000
Received: from unknown (HELO web41206.mail.yahoo.com) (0.0.0.0)
  by mta1.grp.scd.yahoo.com with SMTP; 9 Mar 2003 15:43:01 -0000>
Received: from [0.0.0.0] by web41206.mail.yahoo.com via HTTP; Sun, 09 Mar 2003
07:43:01 PST
To: <BUY-OUR-JUNK@spam.invalid>
From: <BUY-OUR-JUNK@spam.invalid>


In this example, I may want to filter out "MY-EMAIL-ADDRESS@invalid" in the
third received header, even though many more exist.  Currently, it would only
filter on the first header.

Reproducible: Always

Steps to Reproduce:
1. Create a "Received" header rule in mailnews to filter a string in any
received header but the first.
2. Run the filter on the folder/account with this message.

Actual Results:  
Message will not be filtered

Expected Results:  
Message should be filtered.
Severity: enhancement → normal
Severity: normal → enhancement
Changing target to Thunderbird from Mailnews.
Component: Filters → Preferences
Product: MailNews → Thunderbird
Version: Trunk → unspecified
Each Received header will be searched if there are more then one. But only the
first line of it while Received headers mostly consist of several lines.

*** This bug has been marked as a duplicate of 124641 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.