mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
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:
@@ -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]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user