Browse Source

Check for removed message

main
M66B 6 years ago
parent
commit
5c2bcaf43b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 2
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1364,11 +1364,11 @@ public class ServiceSynchronize extends LifecycleService {
if (imessage.isExpunged()) { if (imessage.isExpunged()) {
Log.i(Helper.TAG, folder.name + " expunged uid=" + uid); Log.i(Helper.TAG, folder.name + " expunged uid=" + uid);
return null;
throw new MessageRemovedException();
} }
if (imessage.isSet(Flags.Flag.DELETED)) { if (imessage.isSet(Flags.Flag.DELETED)) {
Log.i(Helper.TAG, folder.name + " deleted uid=" + uid); Log.i(Helper.TAG, folder.name + " deleted uid=" + uid);
return null;
throw new MessageRemovedException();
} }
MessageHelper helper = new MessageHelper(imessage); MessageHelper helper = new MessageHelper(imessage);


Loading…
Cancel
Save