Browse Source

Move outbox to sent on new sent message

main
M66B 6 years ago
parent
commit
4342362c6f
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 6
- 2
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1044,8 +1044,12 @@ public class ServiceSynchronize extends LifecycleService {
long id = MimeMessageEx.getId(imessage); long id = MimeMessageEx.getId(imessage);
message = db.message().getMessage(id); message = db.message().getMessage(id);
if (message != null && message.folder != folder.id)
message = null; // Archive
if (message != null && message.folder != folder.id) {
if (EntityFolder.TYPE_ARCHIVE.equals(folder.type))
message = null;
else // Outbox to sent
message.folder = folder.id;
}
boolean update = (message != null); boolean update = (message != null);
if (message == null) if (message == null)
message = new EntityMessage(); message = new EntityMessage();


Loading…
Cancel
Save