Skip to content

Commit

Permalink
Fix behaviour of SOGoMailKeepDraftsAfterSend
Browse files Browse the repository at this point in the history
Fixes #4830
  • Loading branch information
cgx committed Sep 27, 2019
1 parent 482728c commit 5b818e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -21,6 +21,7 @@ Bug fixes
- [web] fixed search results in Calendar module when targeting all events
- [web] properly encode URL of cards from exteral sources
- [web] restore cards selection after automatic refresh (#4809)
- [web] don't mark draft as deleted when SOGoMailKeepDraftsAfterSend is enabled (#4830)
- [core] honor IMAPLoginFieldName also when setting IMAP ACLs
- [core] honor groups when setting IMAP ACLs
- [core] honor "any authenticated user" when setting IMAP ACLs
Expand Down
2 changes: 1 addition & 1 deletion SoObjects/Mailer/SOGoDraftObject.m
Expand Up @@ -2068,7 +2068,7 @@ - (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent
if (!error)
{
[self imap4Connection];
if (IMAP4ID > -1)
if (IMAP4ID > -1 && ![dd mailKeepDraftsAfterSend])
[imap4 markURLDeleted: [self imap4URL]];
if (sourceURL && sourceFlag)
{
Expand Down

0 comments on commit 5b818e8

Please sign in to comment.