fix downloading imap msgs for offline use when GDS is running, 297776, sr=mscott, a=asa

This commit is contained in:
bienvenu%nventure.com 2005-07-07 15:52:45 +00:00
Родитель 78471d3fbd
Коммит 87a40637a6
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -4125,6 +4125,11 @@ nsImapMailFolder::GetNotifyDownloadedLines(PRBool *notifyDownloadedLines)
NS_IMETHODIMP
nsImapMailFolder::SetNotifyDownloadedLines(PRBool notifyDownloadedLines)
{
// ignore this if we're downloading the whole folder and someone says
// to turn off downloading for offline use, which can happen if a 3rd party
// app tries to stream a message while we're downloading for offline use.
if (!notifyDownloadedLines && m_downloadingFolderForOfflineUse)
return NS_OK;
m_downloadMessageForOfflineUse = notifyDownloadedLines;
return NS_OK;
}