Added isEncrypted
This commit is contained in:
parent
fbfeb7ced6
commit
c4bf7f91ca
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue