Save message to IMAP server before saving plist

By first appending the message to the mailbox, we obtain the IMAP ID and
save it to the local plist. Having the message ID, we can delete it when
saving/appending a new version of the draft to the mailbox.
This commit is contained in:
Francis Lachapelle
2015-01-06 11:59:35 -05:00
parent 60048fd326
commit 556cfdf7e1

View File

@@ -1004,11 +1004,11 @@ static NSString *userAgent = nil;
withMetadata: attachment];
}
[self storeInfo];
// Save the message to the IMAP store so the user can eventually view the attached file(s)
// from the Web interface
[self save];
[self storeInfo];
}
/* accessors */