Fix Mac bustage.

git-svn-id: svn://10.0.0.236/trunk@226760 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org 2007-05-21 23:32:03 +00:00
parent 43bf1d7b45
commit 7d200495f6

View File

@ -784,8 +784,10 @@ nsImapService::CopyMessages(nsMsgKeyArray *keys, nsIMsgFolder *srcFolder, nsIStr
PRUnichar hierarchySeparator = GetHierarchyDelimiter(folder);
rv = CreateStartOfImapUrl(uri.get(), getter_AddRefs(imapUrl), folder.get(), aUrlListener, urlSpec, hierarchySeparator);
nsImapAction action;
action = (moveMessage) ? nsIImapUrl::nsImapOnlineToOfflineMove : nsIImapUrl::nsImapOnlineToOfflineCopy;
imapUrl->SetCopyState(aMailboxCopy);
if (moveMessage) // don't use ?: syntax here, it seems to break the Mac.
action = nsIImapUrl::nsImapOnlineToOfflineMove;
else
imapUrl->SetCopyState(aMailboxCopy);
// now try to display the message
rv = FetchMessage(imapUrl, action, folder, imapMessageSink,
aMsgWindow, streamSupport, messageIds.get(), PR_FALSE, nsnull, aURL);