From 6aeda98c0a3edf53f5a96bfe0f46c4495cff4197 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 8 Feb 2021 17:15:20 +0100 Subject: [PATCH] comment on the quoted-encded test --- src/mimeparser.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 8844dfae6..506975842 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -1519,6 +1519,8 @@ mod tests { assert_eq!(contact.addr, "g@c.de"); assert_eq!(contact.display_name, Some("Götz C".to_string())); + // although RFC 2047 says, encoded-words shall not appear inside quoted-string, + // this combination is used in the wild eg. by MailMate let mimemsg = MimeMessage::from_bytes(&ctx, b"From: \"=?utf-8?q?G=C3=B6tz?= C\" \n\nhi") .await