Improve webmail editor

- Fixed handling of saving drafts
- Fixed handling of message type (HTML/plain)
- Added primitive handling of attachments
This commit is contained in:
Francis Lachapelle
2014-12-16 15:47:34 -05:00
parent 32196b56db
commit 533d7110c7
8 changed files with 137 additions and 61 deletions
-14
View File
@@ -295,20 +295,6 @@ static NSString *mailETag = nil;
if ((addresses = [addressFormatter dictionariesForArray: [co replyToEnvelopeAddresses]]))
[data setObject: addresses forKey: @"reply-to"];
if ([self mailIsDraft])
{
SOGoMailAccount *account;
SOGoDraftsFolder *folder;
SOGoDraftObject *newMail;
account = [co mailAccountFolder];
folder = [account draftsFolderInContext: context];
newMail = [folder newDraft];
[newMail fetchMailForEditing: co];
[newMail storeInfo];
[data setObject: [newMail nameInContainer] forKey: @"draftId"];
}
response = [self responseWithStatus: 200
andString: [data jsonRepresentation]];