mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 18:43:23 +02:00
Fixed reappearing POP3 messages
This commit is contained in:
@@ -1277,6 +1277,19 @@ public class MessageHelper {
|
||||
return (header == null ? null : MimeUtility.unfold(header));
|
||||
}
|
||||
|
||||
@NonNull
|
||||
String getPOP3MessageID() throws MessagingException {
|
||||
String msgid = getMessageID();
|
||||
if (TextUtils.isEmpty(msgid)) {
|
||||
Long time = getSent();
|
||||
if (time == null)
|
||||
msgid = getHash();
|
||||
else
|
||||
msgid = Long.toString(time);
|
||||
}
|
||||
return msgid;
|
||||
}
|
||||
|
||||
List<Header> getAllHeaders() throws MessagingException {
|
||||
ensureHeaders();
|
||||
return Collections.list(imessage.getAllHeaders());
|
||||
|
||||
Reference in New Issue
Block a user