From f774665921757cbf736ec85550a93bdb0a28c455 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 6 Dec 2020 01:40:41 +0100 Subject: [PATCH] be more graceful when the apostrophed-encoding is used erroneous - either by other MUA or by Delta Chat up to core1.50 --- src/mimeparser.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 5436d7a37..f70e79c1a 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -1328,8 +1328,11 @@ fn get_attachment_filename( } } } else { - warn!(context, "apostroped encoding invalid"); - None + warn!(context, "apostroped encoding invalid: {}", name); + // be graceful and just use the original name. + // some MUA, including Delta Chat up to core1.50, + // use `filename*` mistakenly for simple encoded-words without following rfc2231 + Some(name) } } }