fix handling of spam plugin imap msg fetch requests so they'll go into memory cache correctly, r=dmose, sr=sspitzer, a=asa not visible to user 169557

This commit is contained in:
bienvenu%netscape.com 2002-10-29 21:03:07 +00:00
Родитель 35dc692f4f
Коммит 47b0b47167
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -7621,7 +7621,14 @@ nsresult nsImapMockChannel::OpenCacheEntry()
*anchor = '\0';
}
else
mTryingToReadPart = PR_TRUE;
{
// check if this is a filter plugin requesting the message. In that case,we're not
// fetching a part, and we want the cache key to be just the uri.
if (strcmp(anchor, "?header=filter"))
mTryingToReadPart = PR_TRUE;
else
*anchor = '\0';
}
}
return cacheSession->AsyncOpenCacheEntry(urlSpec.get(), nsICache::ACCESS_READ_WRITE, this);
}