1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

COPYUID changes were being updated only in memory, but were not being written to db.

This commit is contained in:
Apoorv Khatreja 2011-07-02 11:59:00 +05:30
parent bc9b7030d7
commit 3321ebdc33

View File

@ -2125,7 +2125,7 @@ public class MessagingController implements Runnable {
throws MessagingException {
Folder remoteSrcFolder = null;
Folder remoteDestFolder = null;
Folder localDestFolder = null;
LocalFolder localDestFolder = null;
try {
String srcFolder = command.arguments[0];
if (account.getErrorFolderName().equals(srcFolder)) {
@ -2144,7 +2144,7 @@ public class MessagingController implements Runnable {
remoteSrcFolder = remoteStore.getFolder(srcFolder);
Store localStore = account.getLocalStore();
localDestFolder = localStore.getFolder(destFolder);
localDestFolder = (LocalFolder) localStore.getFolder(destFolder);
List<Message> messages = new ArrayList<Message>();
/*
@ -2230,6 +2230,7 @@ public class MessagingController implements Runnable {
Message localDestMessage = localDestFolder.getMessage(localDestUid);
localDestMessage.setUid(remoteUidMap.get(remoteSrcUid));
localDestFolder.changeUid((LocalMessage)localDestMessage);
}
}
} finally {