зеркало из https://github.com/mozilla/pjs.git
Bug #2775 --> only force a delete model if the server is a AOL server.
only show deleted messages if the server is a AOL server. r=bienvenu sr=alecf
This commit is contained in:
Родитель
d19f4832c4
Коммит
804eeecaf2
|
@ -338,7 +338,10 @@ nsImapIncomingServer::GetDeleteModel(PRInt32 *retval)
|
|||
NS_ENSURE_ARG(retval);
|
||||
|
||||
GetIsAOLServer(&isAOLServer);
|
||||
if (isAOLServer)
|
||||
nsXPIDLCString hostName;
|
||||
GetHostName(getter_Copies(hostName));
|
||||
|
||||
if (isAOLServer && ((const char *) hostName) && !nsCRT::strcmp(hostName, "imap.mail.aol.com"))
|
||||
{
|
||||
*retval = nsMsgImapDeleteModels::DeleteNoTrash;
|
||||
return NS_OK;
|
||||
|
|
|
@ -3148,7 +3148,11 @@ PRBool nsImapMailFolder::ShowDeletedMessages()
|
|||
{
|
||||
PRBool isAOLServer = PR_FALSE;
|
||||
imapServer->GetIsAOLServer(&isAOLServer);
|
||||
if (isAOLServer)
|
||||
nsCOMPtr<nsIMsgIncomingServer> incomingServer (do_QueryInterface(imapServer));
|
||||
nsXPIDLCString hostName;
|
||||
incomingServer->GetHostName(getter_Copies(hostName));
|
||||
|
||||
if (isAOLServer && ((const char *) hostName) && !nsCRT::strcmp(hostName, "imap.mail.aol.com"))
|
||||
{
|
||||
nsXPIDLString folderName;
|
||||
GetName(getter_Copies(folderName));
|
||||
|
|
Загрузка…
Ссылка в новой задаче