From 0cb4207ef73027e86feee4400647ad8f10f777d9 Mon Sep 17 00:00:00 2001 From: cketti Date: Fri, 9 Mar 2012 21:51:48 +0100 Subject: [PATCH] IMAP: don't create the destination folder when copying messages --- src/com/fsck/k9/mail/store/ImapStore.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 008d8d45a..043920aa6 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -1101,15 +1101,6 @@ public class ImapStore extends Store { try { String remoteDestName = encodeString(encodeFolderName(iFolder.getPrefixedName())); - if (!exists(remoteDestName)) { - // If the remote trash folder doesn't exist we try to create it. - if (K9.DEBUG) { - Log.i(K9.LOG_TAG, "Attempting to create remote folder '" + remoteDestName + - "' for " + getLogId()); - } - iFolder.create(FolderType.HOLDS_MESSAGES); - } - //TODO: Split this into multiple commands if the command exceeds a certain length. mConnection.sendCommand(String.format("UID COPY %s %s", Utility.combine(uids, ','),