fix 202169, empty from header messes up filters based on ab presence, a=mkaply, r/sr=me, patch by kalium@gmx.de

This commit is contained in:
bienvenu%nventure.com 2004-07-21 18:23:10 +00:00
Родитель 1288ee3b83
Коммит 54b73c6a90
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -866,6 +866,10 @@ nsresult nsMsgSearchTerm::MatchInAddressBook(const char * aAddress, PRBool *pRes
nsresult rv = InitializeAddressBook();
*pResult = PR_FALSE;
// Some junkmails have empty From: fields.
if (aAddress == NULL || strlen(aAddress) == 0)
return rv;
if (mDirectory)
{
PRBool cardExists = PR_FALSE;