From 33fd42e766ad96b5c3af0087c055cda3e0a0e13e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 12 Nov 2010 21:37:54 +0000 Subject: [PATCH] If we DELETE a message from the database, don't then try to UPDATE it --- src/com/fsck/k9/mail/store/LocalStore.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 7222cc4da..405cfd2b6 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -4917,6 +4917,12 @@ public class LocalStore extends Store implements Serializable throw new RuntimeException(me); } + if (flag == Flag.X_DESTROYED && set) + { + return; + } + + super.setFlag(flag, set); /* * Set the flags on the message.