Check for move of expunged messages

pull/215/head
M66B 3 months ago
parent 7693e66d70
commit 74e6061ac5

@ -1454,6 +1454,8 @@ class Core {
Message imessage = ifolder.getMessageByUID(message.uid); Message imessage = ifolder.getMessageByUID(message.uid);
if (imessage == null) if (imessage == null)
throw new MessageRemovedException("move without message"); throw new MessageRemovedException("move without message");
if (imessage.isExpunged())
throw new MessageRemovedException("move of expunged message");
map.put(imessage, message); map.put(imessage, message);
} catch (MessageRemovedException ex) { } catch (MessageRemovedException ex) {
Log.e(ex); Log.e(ex);

Loading…
Cancel
Save