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

Possible Message-ID fix

Refs #41
This commit is contained in:
M66B 2018-08-16 17:14:05 +00:00
parent bb816da2fe
commit 38c2b0f598

View file

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