Added isEncrypted

This commit is contained in:
dankito 2024-11-21 21:51:20 +01:00
parent fbfeb7ced6
commit c4bf7f91ca
2 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class MailReader(
return MailWithInvoice(
message.from?.joinToString(), message.subject ?: "",
message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber,
parts.any { it.mediaType == "application/pgp-encrypted" },
getPlainTextBody(parts), getHtmlBody(parts),
attachmentsWithEInvoice
)

View File

@ -16,6 +16,7 @@ class MailWithInvoice(
* -> use with care. Message numbers are not valid / the same anymore after expunge.
*/
val messageNumber: Int,
val isEncrypted: Boolean = false,
val plainTextBody: String?,
val htmlBody: String?,
val attachmentsWithEInvoice: List<MailAttachmentWithEInvoice>