15244 r=cavin sr=bienvenu Make aol "Sent Mail" and netscape webmail "Sent" folders show "Recipient" column instead of "Sender" column in thread pane.

This commit is contained in:
naving%netscape.com 2002-06-14 23:03:49 +00:00
Родитель 2348e89dc7
Коммит 364e37a6ed
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -1333,6 +1333,15 @@ NS_IMETHODIMP nsImapIncomingServer::PossibleImapMailbox(const char *folderPath,
else
{
rv = ConvertFolderName(onlineName.get(), getter_Copies(convertedName));
//make sure rv value is not crunched, it is used to SetPrettyName
nsXPIDLCString redirectorType;
GetRedirectorType(getter_Copies(redirectorType)); //Sent mail folder as per netscape webmail and aol server
if ((redirectorType.Equals(NS_LITERAL_CSTRING("aol")) && convertedName.Equals(NS_LITERAL_STRING("Sent Mail"))) ||
(redirectorType.Equals(NS_LITERAL_CSTRING("netscape")) && onlineName.Equals(NS_LITERAL_CSTRING("Sent"))))
//we know that we don't allowConversion for netscape webmail so just use the onlineName
child->SetFlag(MSG_FOLDER_FLAG_SENTMAIL);
if (NS_SUCCEEDED(rv))
child->SetPrettyName(convertedName);
}