-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2080 from deltachat/fix-filenames
fix decoding of continued filenames
- Loading branch information
Showing
8 changed files
with
564 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Subject: Test combined filenames | ||
Message-ID: [email protected] | ||
Date: Sat, 07 Dec 2019 19:00:27 +0000 | ||
X-Mailer: Kopano 8.7.16 | ||
To: [email protected] | ||
From: [email protected] | ||
Content-Type: multipart/mixed; boundary="NwkNRwaJw1M5n2xcr2ODfAqvTjcj9Z" | ||
|
||
|
||
--NwkNRwaJw1M5n2xcr2ODfAqvTjcj9Z | ||
Content-Type: text/plain; charset=utf-8 | ||
yip, filename may be given twice, | ||
seen this way in Kopano. | ||
normally, both filenames will be the same, | ||
for the test, we use different filenames, | ||
we define that `filename` has a higher precedence. | ||
-- | ||
Sent with my Delta Chat Messenger: https://delta.chat | ||
|
||
--NwkNRwaJw1M5n2xcr2ODfAqvTjcj9Z | ||
Content-Type: text/html | ||
Content-Disposition: attachment; filename="=?utf-8?Q?Ma=C3=9Fnahmen_Okt=2E_2020=2Ehtml?="; | ||
filename*=utf-8''Ma%C3%9Fnahmen%20Okt.%202020.ignored.html | ||
Content-Transfer-Encoding: base64 | ||
|
||
PGh0bWw+PGJvZHk+dGV4dDwvYm9keT5kYXRh | ||
|
||
--NwkNRwaJw1M5n2xcr2ODfAqvTjcj9Z-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Subject: Test encoded-words filenames | ||
Message-ID: [email protected] | ||
Date: Sat, 07 Dec 2019 19:00:27 +0000 | ||
Chat-Version: 1.0 | ||
To: [email protected] | ||
From: [email protected] | ||
Content-Type: multipart/mixed; boundary="mwkNRwabw1M5n2xcr2ODfAqvTjcj9Z" | ||
|
||
|
||
--mwkNRwabw1M5n2xcr2ODfAqvTjcj9Z | ||
Content-Type: text/plain; charset=utf-8 | ||
-- | ||
Sent with my Delta Chat Messenger: https://delta.chat | ||
|
||
--mwkNRwabw1M5n2xcr2ODfAqvTjcj9Z | ||
Content-Type: text/html | ||
Content-Disposition: attachment; filename="=?utf-8?Q?Ma=C3=9Fnahmen_Okt=2E_2020=2Ehtml?="; | ||
Content-Transfer-Encoding: base64 | ||
|
||
PGh0bWw+PGJvZHk+dGV4dDwvYm9keT5kYXRh | ||
|
||
--mwkNRwabw1M5n2xcr2ODfAqvTjcj9Z-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Subject: Test encoded-words filenames, spanning different lines | ||
Message-ID: [email protected] | ||
Date: Sat, 07 Dec 2019 19:00:27 +0000 | ||
X-Mailer: Delta Chat Core 1.0.0-beta.12/DcFFI | ||
Chat-Version: 1.0 | ||
To: [email protected] | ||
From: [email protected] | ||
Content-Type: multipart/mixed; boundary="maaNRwaJw1M5n2xcr2ODfAqvTjcj9Z" | ||
|
||
|
||
--maaNRwaJw1M5n2xcr2ODfAqvTjcj9Z | ||
Content-Type: text/plain; charset=utf-8 | ||
-- | ||
Sent with my Delta Chat Messenger: https://delta.chat | ||
|
||
--maaNRwaJw1M5n2xcr2ODfAqvTjcj9Z | ||
Content-Type: text/html | ||
Content-Disposition: attachment; filename*0="=?utf-8?Q?Ma=C3=9Fn'ah'men_?="; | ||
filename*1="=?utf-8?Q?Okt=2E_2020=2Ehtml?="; | ||
Content-Transfer-Encoding: base64 | ||
|
||
PGh0bWw+PGJvZHk+dGV4dDwvYm9keT5kYXRh | ||
|
||
--maaNRwaJw1M5n2xcr2ODfAqvTjcj9Z-- |
File renamed without changes.
Oops, something went wrong.