From 8a79690c429fe6e1e1391c3937474b747b02dc60 Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Wed, 2 Dec 2009 04:09:51 +0000 Subject: [PATCH] Fixes Issue 850 Don't try to move, copy, or delete a K9mail-errors message on the server-side. --- src/com/android/email/MessagingController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/android/email/MessagingController.java b/src/com/android/email/MessagingController.java index 551884248..943dc7bd9 100644 --- a/src/com/android/email/MessagingController.java +++ b/src/com/android/email/MessagingController.java @@ -1876,6 +1876,10 @@ public class MessagingController implements Runnable } private void queueMoveOrCopy(Account account, String srcFolder, String destFolder, boolean isCopy, String uids[]) { + if (account.getErrorFolderName().equals(srcFolder)) + { + return; + } PendingCommand command = new PendingCommand(); command.command = PENDING_COMMAND_MOVE_OR_COPY; @@ -1905,6 +1909,10 @@ public class MessagingController implements Runnable try { String srcFolder = command.arguments[0]; + if (account.getErrorFolderName().equals(srcFolder)) + { + return; + } String destFolder = command.arguments[1]; String isCopyS = command.arguments[2]; Store remoteStore = Store.getInstance(account.getStoreUri(), mApplication);