Browse Source

Possible Message-ID fix

Refs #41
main
M66B 6 years ago
parent
commit
38c2b0f598
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

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

@ -954,10 +954,8 @@ public class ServiceSynchronize extends LifecycleService {
EntityFolder sent = db.folder().getFolderByType(ident.account, EntityFolder.SENT); EntityFolder sent = db.folder().getFolderByType(ident.account, EntityFolder.SENT);
if (sent == null) if (sent == null)
; // Leave message in outbox ; // Leave message in outbox
else {
else
message.folder = sent.id; message.folder = sent.id;
message.uid = null;
}
// Update state // Update state
if (message.thread == null) if (message.thread == null)
@ -1223,7 +1221,7 @@ public class ServiceSynchronize extends LifecycleService {
// - messages in archive have same id as original // - messages in archive have same id as original
if (message == null) { if (message == null) {
// Will fetch headers within database transaction // Will fetch headers within database transaction
String msgid = imessage.getMessageID();
String msgid = helper.getMessageID();
message = db.message().getMessageByMsgId(msgid); message = db.message().getMessageByMsgId(msgid);
if (message != null) { if (message != null) {
EntityFolder mfolder = db.folder().getFolder(message.folder); EntityFolder mfolder = db.folder().getFolder(message.folder);


Loading…
Cancel
Save