mirror of https://github.com/M66B/FairEmail.git
Added add/found old resolution
This commit is contained in:
parent
4de4f64972
commit
80aa2e7262
|
@ -1088,6 +1088,18 @@ class Core {
|
|||
newuid = found;
|
||||
else if (!newuid.equals(found)) {
|
||||
Log.w(folder.name + " Added=" + newuid + " found=" + found);
|
||||
try {
|
||||
Message iprev = ifolder.getMessageByUID(Math.min(newuid, found));
|
||||
if (iprev != null) {
|
||||
iprev.setFlag(Flags.Flag.DELETED, true);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean perform_expunge = prefs.getBoolean("perform_expunge", true);
|
||||
if (perform_expunge)
|
||||
ifolder.expunge();
|
||||
}
|
||||
} catch (MessagingException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
newuid = Math.max(newuid, found);
|
||||
}
|
||||
} catch (MessagingException ex) {
|
||||
|
|
Loading…
Reference in New Issue