Fixed that from may is null

This commit is contained in:
dankito 2024-11-21 21:00:34 +01:00
parent 9aaa2f630c
commit 2ab10f77d4
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ class MailReader(
if (attachmentsWithEInvoice.isNotEmpty()) { if (attachmentsWithEInvoice.isNotEmpty()) {
return MailWithInvoice( return MailWithInvoice(
message.from.joinToString(), message.subject, message.from?.joinToString(), message.subject,
message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber, message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber,
getPlainTextBody(parts), getHtmlBody(parts), getPlainTextBody(parts), getHtmlBody(parts),
attachmentsWithEInvoice attachmentsWithEInvoice

View File

@ -4,7 +4,7 @@ import java.time.Instant
import java.time.ZoneId import java.time.ZoneId
class MailWithInvoice( class MailWithInvoice(
val sender: String, val sender: String?,
val subject: String, val subject: String,
val sent: Instant?, val sent: Instant?,
val received: Instant, val received: Instant,