|
|
@ -1611,8 +1611,11 @@ class Core {
|
|
|
|
throw new IllegalArgumentException("move: msgid missing");
|
|
|
|
throw new IllegalArgumentException("move: msgid missing");
|
|
|
|
|
|
|
|
|
|
|
|
Long uid = findUid(context, account, itarget, msgid);
|
|
|
|
Long uid = findUid(context, account, itarget, msgid);
|
|
|
|
if (uid == null)
|
|
|
|
if (uid == null) {
|
|
|
|
throw new IllegalArgumentException("move: uid not found");
|
|
|
|
Log.w("move: uid not found msgid=" + msgid);
|
|
|
|
|
|
|
|
db.message().deleteMessage(message.id);
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (draft || duplicate) {
|
|
|
|
if (draft || duplicate) {
|
|
|
|
Message icopy = itarget.getMessageByUID(uid);
|
|
|
|
Message icopy = itarget.getMessageByUID(uid);
|
|
|
|