1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Move messages from outbox to sent (if any)

Fixes #24
This commit is contained in:
M66B 2018-08-08 11:58:50 +00:00
parent ac1e20857d
commit bd489df9a5

View file

@ -824,8 +824,15 @@ public class ServiceSynchronize extends LifecycleService {
msg.sent = new Date().getTime();
msg.seen = true;
msg.ui_seen = true;
EntityFolder sent = db.folder().getFolderByType(ident.account, EntityFolder.TYPE_SENT);
if (sent != null) {
Log.i(Helper.TAG, "Moving to sent folder=" + sent.id);
msg.folder = sent.id;
}
message.updateMessage(msg);
// TODO: purge sent messages
} finally {
itransport.close();
}