add failing test for erroneous apostrophed-encoding

This commit is contained in:
B. Petersen
2020-12-06 01:34:22 +01:00
committed by link2xt
parent cdb7f1dd9f
commit 8fcb8c3788
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
Subject: Test apostrophed filenames
Message-ID: 12345@testrun.org
Date: Sat, 07 Dec 2019 19:00:27 +0000
To: recp@testrun.org
From: sender@testrun.org
Content-Type: multipart/mixed; boundary="==BREAK=="
--==BREAK==
Content-Type: text/plain; charset=utf-8
this mail uses filename* in an invalid way,
not specifying chatset or language parts.
see https://tools.ietf.org/html/rfc2231, section 4.:
"Note also that the single quote delimiters MUST be present
even when one of the field values is omitted."
however, for now, Delta Chat is generous in this case,
just assuming encoded words
--==BREAK==
Content-Type: text/html
Content-Disposition: attachment;
filename*="=?utf-8?Q?somed=C3=A4=C3=BCta.html.zip?="
Content-Transfer-Encoding: base64
PGh0bWw+PGJvZHk+dGV4dDwvYm9keT5kYXRh
--==BREAK==--