From 6d206b25f0c9f45dbe606f85b50d034c704f9adc Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 21 Nov 2024 21:38:47 +0100 Subject: [PATCH] Added hint on messageNumber --- .../kotlin/net/codinux/invoicing/mail/MailWithInvoice.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailWithInvoice.kt b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailWithInvoice.kt index 2c60112..f74781c 100644 --- a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailWithInvoice.kt +++ b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailWithInvoice.kt @@ -8,6 +8,13 @@ class MailWithInvoice( val subject: String, val sent: Instant?, val received: Instant, + /** + * From documentation of underlying mail library: + * "Since message numbers can change within a session if the folder is expunged, clients are advised not to use + * message numbers as references to messages." + * + * -> use with care. Message numbers are not valid / the same anymore after expunge. + */ val messageNumber: Int, val plainTextBody: String?, val htmlBody: String?,