|
|
@ -3136,8 +3136,7 @@ class Core {
|
|
|
|
for (int i = imessages.length - max; i < imessages.length; i++) {
|
|
|
|
for (int i = imessages.length - max; i < imessages.length; i++) {
|
|
|
|
Message imessage = imessages[i];
|
|
|
|
Message imessage = imessages[i];
|
|
|
|
MessageHelper helper = new MessageHelper((MimeMessage) imessage, context);
|
|
|
|
MessageHelper helper = new MessageHelper((MimeMessage) imessage, context);
|
|
|
|
String msgid = helper.getMessageID(); // expensive!
|
|
|
|
String msgid = helper.getPOP3MessageID(); // expensive!
|
|
|
|
if (!TextUtils.isEmpty(msgid))
|
|
|
|
|
|
|
|
known.remove(msgid);
|
|
|
|
known.remove(msgid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -3175,15 +3174,7 @@ class Core {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
uidl = null;
|
|
|
|
uidl = null;
|
|
|
|
msgid = helper.getMessageID();
|
|
|
|
msgid = helper.getPOP3MessageID();
|
|
|
|
|
|
|
|
|
|
|
|
if (TextUtils.isEmpty(msgid)) {
|
|
|
|
|
|
|
|
Long time = helper.getSent();
|
|
|
|
|
|
|
|
if (time == null)
|
|
|
|
|
|
|
|
msgid = helper.getHash();
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
msgid = Long.toString(time);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (TextUtils.isEmpty(msgid)) {
|
|
|
|
if (TextUtils.isEmpty(msgid)) {
|
|
|
|