Bug #101480: In ParseListOfMessageIds(), set 'm_fetchPartsOnDemand'

to true if we're asking for body only. r=sspitzer, sr=mscott.
This commit is contained in:
cavin%netscape.com 2001-11-02 03:09:38 +00:00
Родитель 81a00d4c31
Коммит 92ff9e9cd4
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1470,6 +1470,11 @@ void nsImapUrl::ParseListOfMessageIds()
m_listOfMessageIds = nsCRT::strdup(m_listOfMessageIds); m_listOfMessageIds = nsCRT::strdup(m_listOfMessageIds);
m_mimePartSelectorDetected = PL_strstr(m_listOfMessageIds, "&part=") != 0 || PL_strstr(m_listOfMessageIds, "?part=") != 0; m_mimePartSelectorDetected = PL_strstr(m_listOfMessageIds, "&part=") != 0 || PL_strstr(m_listOfMessageIds, "?part=") != 0;
// if we're asking for just the body, don't download the whole message. see
// nsMsgQuote::QuoteMessage() for the "header=" settings when replying to msgs.
if (!m_fetchPartsOnDemand)
m_fetchPartsOnDemand = (PL_strstr(m_listOfMessageIds, "?header=quotebody") != 0 ||
PL_strstr(m_listOfMessageIds, "?header=only") != 0);
} }
} }