Mark messages as modified

This commit is contained in:
M66B
2024-07-30 07:06:51 +02:00
parent 58cf914d87
commit efb70728f2
2 changed files with 9 additions and 1 deletions

View File

@@ -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();