Always check POP3 message ID

pull/200/head
M66B 3 years ago
parent ca2e7ad8e4
commit 4580720856

@ -2378,10 +2378,6 @@ class Core {
msgid = helper.getMessageID();
if (TextUtils.isEmpty(msgid))
msgid = uidl;
} else {
_new = false;
Log.i(folder.name + " POP having uidl=" + uidl);
continue;
}
} else {
uidl = null;
@ -2394,12 +2390,6 @@ class Core {
if (time != null)
msgid = Long.toString(time);
}
if (db.message().countMessageByMsgId(folder.id, msgid) > 0) {
_new = false;
Log.i(folder.name + " POP having msgid=" + msgid);
continue;
}
}
if (TextUtils.isEmpty(msgid)) {
@ -2407,6 +2397,12 @@ class Core {
continue;
}
if (db.message().countMessageByMsgId(folder.id, msgid) > 0) {
_new = false;
Log.i(folder.name + " POP having msgid=" + msgid + " uidl=" + uidl);
continue;
}
try {
Long sent = helper.getSent();
Long received = helper.getReceivedHeader();

Loading…
Cancel
Save