From 7df4b944ee4f7c0d84130f3db196f4215068850a Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 28 Nov 2024 03:53:27 +0100 Subject: [PATCH] Fixed ensuring that extension is in lowercase --- .../main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt index b1aae67..893c551 100644 --- a/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt +++ b/e-invoice-domain/src/main/kotlin/net/codinux/invoicing/email/EmailsFetcher.kt @@ -195,7 +195,7 @@ open class EmailsFetcher( } val filename = File(part.fileName) - val extension = filename.extension + val extension = filename.extension.lowercase() val (invoice, invoiceFile) = tryToReadEInvoice(part, extension, messagePart.mediaType, status)