зеркало из https://github.com/mozilla/pjs.git
fix problem selecting imap messages after imap uid validity rolls, r/sr=sspitzer 145638
This commit is contained in:
Родитель
6725d1ef9c
Коммит
0f02c6b775
|
@ -7753,7 +7753,12 @@ nsresult nsImapMockChannel::OpenCacheEntry()
|
|||
if (folderSink)
|
||||
folderSink->GetUidValidity(&uidValidity);
|
||||
}
|
||||
return cacheSession->AsyncOpenCacheEntry(urlSpec.get(), nsICache::ACCESS_READ_WRITE, this);
|
||||
// stick the uid validity in front of the url, so that if the uid validity
|
||||
// changes, we won't re-use the wrong cache entries.
|
||||
nsCAutoString cacheKey;
|
||||
cacheKey.AppendInt(uidValidity, 16);
|
||||
cacheKey.Append(urlSpec);
|
||||
return cacheSession->AsyncOpenCacheEntry(cacheKey.get(), nsICache::ACCESS_READ_WRITE, this);
|
||||
}
|
||||
|
||||
nsresult nsImapMockChannel::ReadFromMemCache(nsICacheEntryDescriptor *entry)
|
||||
|
|
Загрузка…
Ссылка в новой задаче