Fix for 202356. Only issue getquotaroot cmd for aol inbox folder. r/sr=bienvenu.

This commit is contained in:
cavin%netscape.com 2003-04-17 20:11:44 +00:00
Родитель 0c3baccfc4
Коммит 93ff5785bf
1 изменённых файлов: 11 добавлений и 0 удалений

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

@ -7382,6 +7382,17 @@ void nsImapProtocol::GetQuotaDataIfSupported(const char *aBoxName)
if (! (GetServerStateParser().GetCapabilityFlag() & kQuotaCapability))
return;
// If it's an aol server then only issue cmd for INBOX (since all
// other AOL mailboxes are virtual and don't support all imap cmds).
nsresult rv;
nsCOMPtr<nsIImapIncomingServer> imapServer = do_QueryReferent(m_server, &rv);
if (NS_FAILED(rv))
return;
nsXPIDLCString redirectorType;
imapServer->GetRedirectorType(getter_Copies(redirectorType));
if (redirectorType.Equals(NS_LITERAL_CSTRING("aol")) && PL_strcasecmp("Inbox", aBoxName))
return;
IncrementCommandTagNumber();
nsCAutoString quotacommand;