mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Mark messages as modified
This commit is contained in:
@@ -180,6 +180,7 @@ public class MessageHelper {
|
||||
static final String HEADER_CORRELATION_ID = "X-Correlation-ID";
|
||||
static final String HEADER_MICROSOFT_ORIGINAL_MESSAGE_ID = "X-Microsoft-Original-Message-ID";
|
||||
static final String HEADER_GOOGLE_ORIGINAL_MESSAGE_ID = "X-Google-Original-Message-ID";
|
||||
static final String HEADER_MODIFIED_TIME = "X-Modified-Time";
|
||||
static final int MAX_SUBJECT_AGE = 48; // hours
|
||||
static final int DEFAULT_THREAD_RANGE = 7; // 2^7 = 128 days
|
||||
static final int MAX_UNZIP_COUNT = 20;
|
||||
@@ -3040,6 +3041,11 @@ public class MessageHelper {
|
||||
return (size < 0 ? null : size);
|
||||
}
|
||||
|
||||
boolean isModified() throws MessagingException {
|
||||
ensureHeaders();
|
||||
return (imessage.getHeader(HEADER_MODIFIED_TIME) != null);
|
||||
}
|
||||
|
||||
Long getReceived() throws MessagingException {
|
||||
ensureEnvelope();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user