Fix behaviour of SOGoMailKeepDraftsAfterSend

Fixes #4830
This commit is contained in:
Francis Lachapelle
2019-09-27 09:48:58 -04:00
parent 482728c942
commit 5b818e8ea9
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -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

View File

@@ -2068,7 +2068,7 @@ static NSString *userAgent = nil;
if (!error)
{
[self imap4Connection];
if (IMAP4ID > -1)
if (IMAP4ID > -1 && ![dd mailKeepDraftsAfterSend])
[imap4 markURLDeleted: [self imap4URL]];
if (sourceURL && sourceFlag)
{