Open Bug 1148246 Opened 6 years ago Updated 5 years ago

Thunderbird Message Filter doesn't filter my message

Categories

(Thunderbird :: Filters, defect)

31 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: rahul07, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150320202338

Steps to reproduce:

Created the filter as follows:
name="EMGC"
enabled="yes"
type="17"
action="Move to folder"
actionValue="mailbox://nobody@Local%20Folders/SMPDEV/EMGC"
condition="OR (to or cc,contains,emgc_us) OR (to or cc,contains,emgc_us_grp)"

Got a email with the following headers:
Received: from example.com (/X.X.X.X)
	by default (XXX Gateway v4.0)
	with ESMTP ; Thu, 26 Mar 2015 17:49:25 -0700
Received: from localhost.localdomain (example.com [X.X.X.X])
	by example.com (X.X.X/X.X.X) with ESMTP id XXXX;
	Fri, 27 Mar 2015 00:49:25 GMT
Date: Fri, 27 Mar 2015 00:49:25 GMT
Message-Id: <201503270049.some_id@example.com>
X-IntgInfo: none
Subject: EMGC_PT.AGNTSAAS_LINUX.X64_150324.2004.SPRINT29 is available at X/X/X
X-Mailer: Mail::Mailer[v2.06] Net::SMTP[v2.29]
Errors-To: User1 <user1@example.com>,
        User2 <user2@example.com>
X-UserId: aime
Content-Type: text/plain
Reply-To: User1 <user1@example.com>,
        User2 <user2@example.com>
To: emgc_us_grp@oracle.com
To: User1 <user1@example.com>
To: User2 <user2@example.com>
From: User1 <user1@example.com>,
        User2 <user2@example.com>


Actual results:

Message is not filtered


Expected results:

Message should be filtered and moved to the correct folder.
(In reply to Rahul Kumar Gupta from comment #0)
> To: emgc_us_grp@oracle.com
> To: User1 <user1@example.com>
> To: User2 <user2@example.com>

"Max number of To:" is 1.
   http://tools.ietf.org/html/rfc5322#section-3.6
If multiple To:,  result is unpredictable, because "which one is correct one if multiple To is wrongly used" is never defined.
Header parser may use first one, but filter may use last one. 

INVALID.
As per my understanding, From can be only 1 but To Receipts can be definitely more than one.
Also the filter says "contains" and not equals, so it should result in a match.
"Number of To: headers" !== "Number of recipients".
In Eail related RFC, "Number of recipients" is not limited. Following is correct header.
   To: a a <a@a.a.a>, b b <b@a.a.a>, c c <s@a.a.a>, 
     e e <e@a.a.a>,   ... ,
     f f <f@a.a.a>,   ... , z z <z@a.a.a>
> X-Mailer: Mail::Mailer[v2.06] Net::SMTP[v2.29]

What mailer does the mail sender use?
Please open bug for the mailer, instead of opening BUG at bugzilla.mozilla.org for Firefox, Thunderbird, SeaMokey etc.
Mail Client i am using is Thunderbird and it is able to process this mail indicating the headers are valid.
As the filter feature used is from Thunderbird, hence logged the bug against Thunderbird.

Thanks!
You need to log in before you can comment on or make changes to this bug.