mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-14 21:45:14 -05:00
COPYUID changes were being updated only in memory, but were not being written to db.
This commit is contained in:
parent
bc9b7030d7
commit
3321ebdc33
@ -2125,7 +2125,7 @@ public class MessagingController implements Runnable {
|
|||||||
throws MessagingException {
|
throws MessagingException {
|
||||||
Folder remoteSrcFolder = null;
|
Folder remoteSrcFolder = null;
|
||||||
Folder remoteDestFolder = null;
|
Folder remoteDestFolder = null;
|
||||||
Folder localDestFolder = null;
|
LocalFolder localDestFolder = null;
|
||||||
try {
|
try {
|
||||||
String srcFolder = command.arguments[0];
|
String srcFolder = command.arguments[0];
|
||||||
if (account.getErrorFolderName().equals(srcFolder)) {
|
if (account.getErrorFolderName().equals(srcFolder)) {
|
||||||
@ -2144,7 +2144,7 @@ public class MessagingController implements Runnable {
|
|||||||
remoteSrcFolder = remoteStore.getFolder(srcFolder);
|
remoteSrcFolder = remoteStore.getFolder(srcFolder);
|
||||||
|
|
||||||
Store localStore = account.getLocalStore();
|
Store localStore = account.getLocalStore();
|
||||||
localDestFolder = localStore.getFolder(destFolder);
|
localDestFolder = (LocalFolder) localStore.getFolder(destFolder);
|
||||||
List<Message> messages = new ArrayList<Message>();
|
List<Message> messages = new ArrayList<Message>();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2230,6 +2230,7 @@ public class MessagingController implements Runnable {
|
|||||||
|
|
||||||
Message localDestMessage = localDestFolder.getMessage(localDestUid);
|
Message localDestMessage = localDestFolder.getMessage(localDestUid);
|
||||||
localDestMessage.setUid(remoteUidMap.get(remoteSrcUid));
|
localDestMessage.setUid(remoteUidMap.get(remoteSrcUid));
|
||||||
|
localDestFolder.changeUid((LocalMessage)localDestMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
Reference in New Issue
Block a user