Open Bug 1148246 Opened 9 years ago Updated 2 years ago

Thunderbird Message Filter doesn't filter my message


(Thunderbird :: Filters, defect)

31 Branch
Windows 7


(Not tracked)



(Reporter: rahul07, Unassigned)


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:
action="Move to folder"
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 (/X.X.X.X)
	by default (XXX Gateway v4.0)
	with ESMTP ; Thu, 26 Mar 2015 17:49:25 -0700
Received: from localhost.localdomain ( [X.X.X.X])
	by (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: <>
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 <>,
        User2 <>
X-UserId: aime
Content-Type: text/plain
Reply-To: User1 <>,
        User2 <>
To: User1 <>
To: User2 <>
From: User1 <>,
        User2 <>

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:
> To: User1 <>
> To: User2 <>

"Max number of To:" is 1.
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. 

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 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.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.