Changed defaults for downloadMessageBody and downloadOnlyPlainTextOrHtmlMessageBody

This commit is contained in:
dankito 2024-11-28 16:26:36 +01:00
parent c516969cb0
commit 52bf9daa7d
2 changed files with 4 additions and 4 deletions

View File

@ -12,12 +12,12 @@ open class FetchEmailsOptions(
*/
val lastRetrievedMessageId: Long? = null,
val downloadMessageBody: Boolean = false,
val downloadMessageBody: Boolean = true,
/**
* If set to true and message contains a plain text message body, then only the plain text message body is downloaded
* and the HTML message body ignored / not downloaded. Reduces process time about 50 % (if no attachments get downloaded).
*/
val downloadOnlyPlainTextOrHtmlMessageBody: Boolean = false,
val downloadOnlyPlainTextOrHtmlMessageBody: Boolean = true,
val downloadOnlyMessagesNewerThan: LocalDate? = null,
/**

View File

@ -7,8 +7,8 @@ import java.util.concurrent.atomic.AtomicBoolean
open class ListenForNewMailsOptions(
val stopListening: AtomicBoolean = AtomicBoolean(false),
downloadMessageBody: Boolean = false,
downloadOnlyPlainTextOrHtmlMessageBody: Boolean = false,
downloadMessageBody: Boolean = true,
downloadOnlyPlainTextOrHtmlMessageBody: Boolean = true,
downloadAttachmentsWithExtensions: List<String> = DefaultDownloadedAttachmentsWithExtensions,
attachmentsDownloadDirectory: File = DefaultAttachmentsDownloadDirectory,