From 52bf9daa7d2296ed0ffc9fef7f2cd2b80a4fdcba Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 28 Nov 2024 16:26:36 +0100 Subject: [PATCH] Changed defaults for downloadMessageBody and downloadOnlyPlainTextOrHtmlMessageBody --- .../kotlin/net/codinux/invoicing/email/FetchEmailsOptions.kt | 4 ++-- .../net/codinux/invoicing/email/ListenForNewMailsOptions.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/FetchEmailsOptions.kt b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/FetchEmailsOptions.kt index 2004e98..b982636 100644 --- a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/FetchEmailsOptions.kt +++ b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/FetchEmailsOptions.kt @@ -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, /** diff --git a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/ListenForNewMailsOptions.kt b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/ListenForNewMailsOptions.kt index 66b26bc..5ae598a 100644 --- a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/ListenForNewMailsOptions.kt +++ b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/ListenForNewMailsOptions.kt @@ -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 = DefaultDownloadedAttachmentsWithExtensions, attachmentsDownloadDirectory: File = DefaultAttachmentsDownloadDirectory,