pull/199/head 1.1633
M66B 3 years ago
parent bdb43f3b92
commit 47044d126f

@ -1318,9 +1318,9 @@ class Core {
if (uid == null)
throw new IllegalArgumentException("move: uid not found");
if (draft) {
if (draft || duplicate) {
Message icopy = itarget.getMessageByUID(uid);
if (icopy != null)
if (icopy == null)
throw new IllegalArgumentException("move: gone uid=" + uid);
// Mark read

@ -196,9 +196,6 @@ public class EntityOperation {
jargs.remove(2);
}
jargs.put(1, autoread);
jargs.put(3, autounflag);
EntityFolder source = db.folder().getFolder(message.folder);
EntityFolder target = db.folder().getFolder(jargs.getLong(0));
if (source == null || target == null || source.id.equals(target.id))
@ -208,6 +205,9 @@ public class EntityOperation {
EntityFolder.TRASH.equals(target.type))
autoread = true;
jargs.put(1, autoread);
jargs.put(3, autounflag);
EntityLog.log(context, "Move message=" + message.id +
"@" + new Date(message.received) +
":" + message.subject +

Loading…
Cancel
Save