From 6d83a23a8aedfdcc65b03f5f70baf00736f6a914 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 21 Oct 2021 14:40:19 +0200 Subject: [PATCH] Workaround incorrect CSV mime types --- app/src/main/java/eu/faircode/email/EntityAttachment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityAttachment.java b/app/src/main/java/eu/faircode/email/EntityAttachment.java index d770cef3e9..a79c601ec6 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -167,6 +167,9 @@ public class EntityAttachment { extension = extension.toLowerCase(Locale.ROOT); // Fix types + if ("csv".equals(extension)) + return "text/csv"; + if ("dxf".equals(extension)) return "application/dxf";