Bug 483629 - Add BCC to AllAddresses term in local search; r=bugzilla@standard8.plus.com sr=bienvenu

This commit is contained in:
Kent James 2009-03-22 15:33:39 +01:00
Родитель dfbbdb19aa
Коммит 7f567dfcd4
5 изменённых файлов: 24 добавлений и 16 удалений

Просмотреть файл

@ -47,7 +47,7 @@
40=reserved for AB 40=reserved for AB
41=reserved for AB 41=reserved for AB
42=reserved for AB 42=reserved for AB
43=From, To or CC 43=From, To, CC or BCC
44=Junk Score Origin 44=Junk Score Origin
45=Junk Percent 45=Junk Percent
46=Attachment Status 46=Attachment Status

Просмотреть файл

@ -510,6 +510,12 @@ nsresult nsMsgSearchOfflineMail::ProcessSearchTerm(nsIMsgDBHdr *msgToMatch,
msgToMatch->GetAuthor(getter_Copies(matchString)); msgToMatch->GetAuthor(getter_Copies(matchString));
err = aTerm->MatchRfc822String(matchString.get(), charset, charsetOverride, &result); err = aTerm->MatchRfc822String(matchString.get(), charset, charsetOverride, &result);
} }
if (boolKeepGoing == result)
{
nsCString bccList;
msgToMatch->GetBccList(getter_Copies(bccList));
err = aTerm->MatchRfc822String(bccList.get(), charset, charsetOverride, &result);
}
break; break;
} }
case nsMsgSearchAttrib::Body: case nsMsgSearchAttrib::Body:

Просмотреть файл

@ -73,17 +73,18 @@ const Keywords = nsMsgSearchAttrib.Keywords; // control entry that is not enable
* Test emails may also include the address "invalid@example.com" * Test emails may also include the address "invalid@example.com"
* *
* *
* Map of test email contents: (P is "Prim...", I is "inva.." address) * Map of test email contents: (P is "Prim...", I is "inva.." address, N is none)
* *
* Email From To CC *
* 1 P I I * Email From To CC BCC
* 2 P P P * 1 P I I N
* 3 I P I * 2 P P P N
* 4 I I P * 3 I P I N
* 5 P I P * 4 I I P N
* 6 I I,P P,I * 5 P I P N
* 7 I I I * 6 I I,P P,I N
* 8 I P P * 7 I I I P
* 8 I P P N
* *
*/ */
@ -104,7 +105,7 @@ var Tests =
{ value: ABUri, { value: ABUri,
attrib: AllAddresses, attrib: AllAddresses,
op: IsInAB, op: IsInAB,
count: 7 }, count: 8 },
{ value: ABUri, { value: ABUri,
attrib: CCopy, attrib: CCopy,
op: IsInAB, op: IsInAB,

Просмотреть файл

@ -30,6 +30,7 @@ Message-Id: <bugmail7.m47LtAEf007542@mrapp51.mozilla.org>
From: invalid@example.com From: invalid@example.com
To: invalid@example.com To: invalid@example.com
Cc: invalid@example.com Cc: invalid@example.com
Bcc: PrimaryEmail1@test.invalid
Subject: [Bug 397009] A filter will let me tag, but not untag Subject: [Bug 397009] A filter will let me tag, but not untag
X-Bugzilla-Reason: None X-Bugzilla-Reason: None
X-Bugzilla-Type: newchanged X-Bugzilla-Type: newchanged

Просмотреть файл

@ -47,7 +47,7 @@
40=reserved for AB 40=reserved for AB
41=reserved for AB 41=reserved for AB
42=reserved for AB 42=reserved for AB
43=From, To or CC 43=From, To, CC or BCC
44=Junk Score Origin 44=Junk Score Origin
45=Junk Percent 45=Junk Percent
46=Attachment Status 46=Attachment Status