Log reason for append/delete

This commit is contained in:
M66B 2019-02-11 13:52:42 +00:00
parent 212c73f6d9
commit bc6d08e15e
1 changed files with 4 additions and 2 deletions

View File

@ -1827,7 +1827,8 @@ public class ServiceSynchronize extends LifecycleService {
throw new FolderNotFoundException(); throw new FolderNotFoundException();
IMAPFolder itarget = (IMAPFolder) istore.getFolder(target.name); IMAPFolder itarget = (IMAPFolder) istore.getFolder(target.name);
if (istore.hasCapability("MOVE") && boolean canMove = istore.hasCapability("MOVE");
if (canMove &&
!EntityFolder.DRAFTS.equals(folder.type) && !EntityFolder.DRAFTS.equals(folder.type) &&
!EntityFolder.DRAFTS.equals(target.type)) { !EntityFolder.DRAFTS.equals(target.type)) {
// Autoread // Autoread
@ -1839,7 +1840,8 @@ public class ServiceSynchronize extends LifecycleService {
// Move message to // Move message to
ifolder.moveMessages(new Message[]{imessage}, itarget); ifolder.moveMessages(new Message[]{imessage}, itarget);
} else { } else {
Log.w(folder.name + " MOVE by DELETE/APPEND"); Log.w(folder.name + " MOVE by DELETE/APPEND" +
" cap=" + canMove + " from=" + folder.type + " to=" + target.type);
// Serialize source message // Serialize source message
ByteArrayOutputStream bos = new ByteArrayOutputStream(); ByteArrayOutputStream bos = new ByteArrayOutputStream();