From ad012cfd60486476730b1bbe1adfc9e17b4d2283 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 d3c518cf0..aa276a9ba 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 */