зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
81a00d4c31
Коммит
92ff9e9cd4
|
@ -1470,6 +1470,11 @@ void nsImapUrl::ParseListOfMessageIds()
|
|||
m_listOfMessageIds = nsCRT::strdup(m_listOfMessageIds);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче