Browse Source

Move messages from outbox to sent (if any)

Fixes #24
main
M66B 6 years ago
parent
commit
bd489df9a5
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 8
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java 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();
}


Loading…
Cancel
Save