Special logic for Gmail drafts moved to archive

pull/207/head
M66B 3 years ago
parent f6e9a35623
commit b42d16195f

@ -1416,7 +1416,8 @@ class Core {
// Some providers do not support the COPY operation for drafts // Some providers do not support the COPY operation for drafts
boolean draft = (EntityFolder.DRAFTS.equals(folder.type) || EntityFolder.DRAFTS.equals(target.type)); boolean draft = (EntityFolder.DRAFTS.equals(folder.type) || EntityFolder.DRAFTS.equals(target.type));
boolean duplicate = (copy && !account.isGmail()) || (draft && account.isGmail()); boolean duplicate = (copy && !account.isGmail()) ||
(draft && EntityFolder.ARCHIVE.equals(target.type) && account.isGmail());
if (draft || duplicate) { if (draft || duplicate) {
Log.i(folder.name + " " + (duplicate ? "copy" : "move") + Log.i(folder.name + " " + (duplicate ? "copy" : "move") +
" from " + folder.type + " to " + target.type); " from " + folder.type + " to " + target.type);

Loading…
Cancel
Save