From 556cfdf7e16a056a6cf2b20be2e32fc4922e79c8 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 6 Jan 2015 11:59:35 -0500 Subject: [PATCH] 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. --- SoObjects/Mailer/SOGoDraftObject.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoObjects/Mailer/SOGoDraftObject.m b/SoObjects/Mailer/SOGoDraftObject.m index 5d23848f2..8dc98b737 100644 --- a/SoObjects/Mailer/SOGoDraftObject.m +++ b/SoObjects/Mailer/SOGoDraftObject.m @@ -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 */