mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
IMAP: don't create the destination folder when copying messages
This commit is contained in:
parent
7163d39091
commit
0cb4207ef7
@ -1101,15 +1101,6 @@ public class ImapStore extends Store {
|
|||||||
try {
|
try {
|
||||||
String remoteDestName = encodeString(encodeFolderName(iFolder.getPrefixedName()));
|
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.
|
//TODO: Split this into multiple commands if the command exceeds a certain length.
|
||||||
mConnection.sendCommand(String.format("UID COPY %s %s",
|
mConnection.sendCommand(String.format("UID COPY %s %s",
|
||||||
Utility.combine(uids, ','),
|
Utility.combine(uids, ','),
|
||||||
|
Loading…
Reference in New Issue
Block a user