Fixed that from may is null
This commit is contained in:
parent
9aaa2f630c
commit
2ab10f77d4
|
@ -110,7 +110,7 @@ class MailReader(
|
|||
|
||||
if (attachmentsWithEInvoice.isNotEmpty()) {
|
||||
return MailWithInvoice(
|
||||
message.from.joinToString(), message.subject,
|
||||
message.from?.joinToString(), message.subject,
|
||||
message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber,
|
||||
getPlainTextBody(parts), getHtmlBody(parts),
|
||||
attachmentsWithEInvoice
|
||||
|
|
|
@ -4,7 +4,7 @@ import java.time.Instant
|
|||
import java.time.ZoneId
|
||||
|
||||
class MailWithInvoice(
|
||||
val sender: String,
|
||||
val sender: String?,
|
||||
val subject: String,
|
||||
val sent: Instant?,
|
||||
val received: Instant,
|
||||
|
|
Loading…
Reference in New Issue