set /DRAFT flag on imap drafts, patch by greg@haverkamp.com, sr=bienvenu 156347
git-svn-id: svn://10.0.0.236/trunk@214140 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
157ccf2edc
commit
9304573bfb
@ -5376,6 +5376,11 @@ void nsImapProtocol::OnAppendMsgFromFile()
|
||||
// convert msg flag label (0xE000000) to imap flag label (0x0E00)
|
||||
if (msgFlags & MSG_FLAG_LABELS)
|
||||
flagsToSet |= (msgFlags & MSG_FLAG_LABELS) >> 16;
|
||||
// If the message copied was a draft, flag it as such
|
||||
nsImapAction imapAction;
|
||||
rv = m_runningUrl->GetImapAction(&imapAction);
|
||||
if (NS_SUCCEEDED(rv) && (imapAction == nsIImapUrl::nsImapAppendDraftFromFile))
|
||||
flagsToSet |= kImapMsgDraftFlag;
|
||||
UploadMessageFromFile(fileSpec, mailboxName, date, flagsToSet);
|
||||
PR_Free( mailboxName );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user