From 74a63db835ec3c4f783e940894d0c1bbcb75640a Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Wed, 30 Dec 2020 09:48:58 +0100 Subject: [PATCH] ignore "text/directory" 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 44f04543..46807fea 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -810,6 +810,7 @@ def replace(msg: Message, old, new) -> Message: or content_type == "multipart/signed" or content_type.startswith("application/") or content_type == "text/calendar" + or content_type == "text/directory" ): LOG.d("not applicable for %s", content_type) return msg