From 3179d70df130b2b375a6ab9a4a1bde3b769a440a Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Thu, 31 Dec 2020 18:03:42 +0100 Subject: [PATCH] ignore text/csv in replace() --- app/email_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/email_utils.py b/app/email_utils.py index 5037ddeb..79db3eea 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -826,6 +826,7 @@ def replace(msg: Message, old, new) -> Message: or content_type.startswith("application/") or content_type == "text/calendar" or content_type == "text/directory" + or content_type == "text/csv" ): LOG.d("not applicable for %s", content_type) return msg