mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Simplification
This commit is contained in:
parent
f42ebd00ec
commit
5a20f8c277
1 changed files with 1 additions and 7 deletions
|
@ -1397,16 +1397,10 @@ class Core {
|
|||
throw new MessageRemovedException("removed uid=" + uid);
|
||||
}
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean perform_expunge = prefs.getBoolean("perform_expunge", true);
|
||||
|
||||
MimeMessage imessage = (MimeMessage) ifolder.getMessageByUID(uid);
|
||||
if (imessage == null)
|
||||
throw new MessageRemovedException(folder.name + " fetch not found uid=" + uid);
|
||||
if (imessage.isExpunged())
|
||||
throw new MessageRemovedException(folder.name + " fetch expunged uid=" + uid);
|
||||
if (perform_expunge && imessage.isSet(Flags.Flag.DELETED))
|
||||
throw new MessageRemovedException(folder.name + " fetch deleted uid=" + uid);
|
||||
// synchronizeMessage will check expunged/deleted
|
||||
|
||||
SyncStats stats = new SyncStats();
|
||||
boolean download = db.folder().getFolderDownload(folder.id);
|
||||
|
|
Loading…
Reference in a new issue