Message filter not working as expected: unexpectedly returns mails with multiple recipients for {To IS foo@bar.com}

UNCONFIRMED
Unassigned

Status

UNCONFIRMED
5 years ago
5 years ago

People

(Reporter: bob, Unassigned)

Tracking

17 Branch
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0 (Beta/Release)
Build ID: 20130511120803

Steps to reproduce:

In the "Filter Rules" window (Tools/Message Filters...), clicked: "New"; in "Filter name:" field entered "test".
In first column selected "To"; in middle column selected "is"; in third column entered my email address.
Under "Perform these actions:", in first column selected "Move message to"; in second column selected (existing) folder "Test".  
Clicked "OK".


Actual results:

Clicked "Run Now" and rule moved all messages containing my email address, and in addition, all messages addressed to me and other recipients (ie. multi-recipient messages).


Expected results:

Expected the filter to move only messages addresses to me and not to include messages addressed to me and other recipients.  Seems to be behaving as if I'd  selected "contains" and not "is" in the selection criteria.
(Reporter)

Comment 1

5 years ago
I'm trying to filter messages where I am the sole recipient, as opposed to those addressed to multiple recipients, such as: myself; john.doe; john.smith; fred.bloggs; etc.
Can you provide a testcase.eml message without private data?

If you use Ctrl+U to verify msg source, where are the other recipients?
- together with your address in the to-field, like this:
> To: myself@asdf.de, john.doe@asdf.de, john.smith@asdf.de
- or distributed elsewhere, like this:
> To: myself@asdf.de
> CC: john.doe@asdf.de, john.smith@asdf.de
There might be an ambiguity about the intended meaning of these filters:

To IS myself@asdf.de = ?

a) one of the to-recipients IS myself@asdf.de (i.e. there might be other to-recipients)

b) the whole set of to-recipients (i.e. the physical To-header in mail source) IS myself@asdf.de (i.e. I'm the only to-recipient and there are no other to-recipients)

I don't have time to test, but it's possible that TB does a), which would explain the behaviour seen in this report, might even be by design.
Summary: Message filter not working as expected → Message filter not working as expected: unexpectedly returns mails with multiple recipients for {To IS foo@bar.com}
The same problem, only more obvious, for Tags field.
(Reporter)

Comment 5

5 years ago
Reference comment 2, below is the header of one of the messages.  I've replaced identifying information with 'xxxxx'  I'm trying to filter messages addressed only to me (in the header below bob@xxxxx.co.uk) but the filter treats this message as a match (as in "contains" rather than "is").

Header:
From - Thu Aug 08 19:00:51 2013
X-Account-Key: account2
X-UIDL: UID12775-1163722646
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Return-path: <txxxxx@tisxxxxx.com>
Envelope-to: bob@xxxxx.co.uk
Delivery-date: Mon, 29 Jul 2013 08:40:00 +0100
Received: from [999.999.9.108] (helo=avasin14.plus.net)
	  by inmxxxxxx.net with esmtp (PlusNet MXCore v2.00) id 1V3i3k-0005bb-0A 
	  for bob@xxxxx.co.uk; Mon, 29 Jul 2013 08:40:00 +0100
Received: from www30.cpt2.xxxxx.net ([99.999.202.30])
	by avasinxxxxx.net with Plusnet Cloudmark Gateway
	id 67fu1m0060frhwx017fxlF; Mon, 29 Jul 2013 08:39:59 +0100
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.1 cv=LtKrlBtc c=1 sm=1 tr=0
 a=8iIo7hmwUccrJL4t/hNHbQ==:117 a=8iIo7hmwUccrJL4t/hNHbQ==:17 a=DHWV6LnLAAAA:8
 a=0Bzu9jTXAAAA:8 a=0XD7WQH8xmIA:10 a=c1h0kSM_AAAA:8 a=wJqV9XrDFuoA:10
 a=DAwyPP_o2Byb1YXLmDAA:9 a=Zr7miEi8wWIA:10 a=cKsnjEOsciEA:10 a=Jnu2ckSRAAAA:8
 a=tuwPCtaxSedo7hQSpI8A:9 a=QEXdDO2ut3YA:10 a=Zn0MW0ezNx0A:10
 a=OCQn18YpNW0A:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=LBO1F9cTWItBV2NOSGMA:9
 a=6zyFFR6ewW0ZZpdq:21 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10
 a=frz4AuCg-hUA:10 a=Q4HT-rVRd7UA:10 a=nN4Xce0Qx-5EuAphLOcA:9
 a=4PNqXkQJEHp5TB-L:18 a=KQqxNPgzF0kA:10 a=ucH7BwLj_I8A:10
 a=_D8kcORkGibsjYUR5eYA:9 a=NnnWsdDRZFVT5rCi:18 a=rPjbfJQEC9Pao_UndHEA:9
 a=nBDNBeT5xIlsNZff:18 a=MhfmajF7EXZeOjd108MA:9 a=nMtixLtWqpjuKQks:18
 a=YqeDSj28fQ7D5-XkTW8A:9 a=mKaw6gtRdSdlpk5x:18 a=eOUc5vWyFBEoMm3ahbgA:9
 a=6UrMEUQXp1hVy4AU:18 a=wXlAbZBfWnU2JEJFVj8A:9 a=t5NbyB6mCKGqSnCK:18
 a=Gf7anakObRf2TAb04Y8A:9 a=gdS0cwbkNQNRHvYK:18
Received: from 999-999-178-36.telkxxxxx.co.za ([999.999.178.36] helo=xxxxxPC)
	by www30.cpt2.xxxxx.net with esmtpa (Exim 4.72)
	(envelope-from <txxxxx@tisxxxxx.com>)
	id 1V3i3S-0002TZ-On; Mon, 29 Jul 2013 09:39:52 +0200
From: <trxxxxx@tisxxxxx.com>
To: <faxxxxx@mxxxxx.co.za>,
	<bob@xxxxx.co.uk>,
	<mvxxxxx@gmail.com>,
	<laxxxxx@gmail.com>,
	<vfxxxxx@gmail.com>,
	<lyxxxxx@gmail.com>
Date: Mon, 29 Jul 2013 09:39:38 +0200
Message-ID: <003801ce8c2e$ca20bb10$xxxxxxx$@tisxxxxx.com>
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="----=_NextPart_000_0039_01CE8C3F.8DABFC10"
X-Mailer: Microsoft Outlook 14.0
Thread-Index: Ac6MLr17tdiUK+yIRJi9i/u5zsOMsw==
Content-Language: en-za
X-Authenticated-Sender: txxxxx@tisxxxxx.com
X-Virus-Scanned: Clear (ClamAV 0.97.8/17588/Mon Jul 29 06:56:06 2013)
X-PN-Virus-Filtered: by PlusNet MXCore (v5.00)
X-PN-Spam-Filtered: by PlusNet MXCore (v5.00)
Subject:
You need to log in before you can comment on or make changes to this bug.