mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
test: add tests for parsing mime message with bad 2231 filename
This commit is contained in:
14
pkg/message/testdata/text_plain_octet_attachment_bad_2231_filename.eml
vendored
Normal file
14
pkg/message/testdata/text_plain_octet_attachment_bad_2231_filename.eml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
From: Sender <sender@pm.me>
|
||||
To: Receiver <receiver@pm.me>
|
||||
Content-Type: multipart/mixed; boundary=longrandomstring
|
||||
|
||||
--longrandomstring
|
||||
|
||||
body
|
||||
--longrandomstring
|
||||
Content-Type: application/octet-stream
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment; filename*=utf-8'%F0%9F%98%81%F0%9F%98%82.txt
|
||||
|
||||
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
|
||||
--longrandomstring--
|
||||
18
pkg/message/testdata/text_plain_octet_attachment_bad_2231_filename.mime
vendored
Normal file
18
pkg/message/testdata/text_plain_octet_attachment_bad_2231_filename.mime
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
Content-Type: multipart/mixed; boundary=longrandomstring
|
||||
From: Sender <sender@pm.me>
|
||||
To: Receiver <receiver@pm.me>
|
||||
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--longrandomstring
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
body
|
||||
--longrandomstring
|
||||
Content-Disposition: attachment; filename*=utf-8'%F0%9F%98%81%F0%9F%98%82.txt
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Type: application/octet-stream
|
||||
|
||||
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
|
||||
--longrandomstring--
|
||||
.
|
||||
14
pkg/message/testdata/text_plain_octet_attachment_good_2231_filename.eml
vendored
Normal file
14
pkg/message/testdata/text_plain_octet_attachment_good_2231_filename.eml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
From: Sender <sender@pm.me>
|
||||
To: Receiver <receiver@pm.me>
|
||||
Content-Type: multipart/mixed; boundary=longrandomstring
|
||||
|
||||
--longrandomstring
|
||||
|
||||
body
|
||||
--longrandomstring
|
||||
Content-Type: application/octet-stream
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment; filename*=utf-8''%F0%9F%98%81%F0%9F%98%82.txt
|
||||
|
||||
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
|
||||
--longrandomstring--
|
||||
18
pkg/message/testdata/text_plain_octet_attachment_good_2231_filename.mime
vendored
Normal file
18
pkg/message/testdata/text_plain_octet_attachment_good_2231_filename.mime
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
Content-Type: multipart/mixed; boundary=longrandomstring
|
||||
From: Sender <sender@pm.me>
|
||||
To: Receiver <receiver@pm.me>
|
||||
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--longrandomstring
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
body
|
||||
--longrandomstring
|
||||
Content-Disposition: attachment; filename*=utf-8''%F0%9F%98%81%F0%9F%98%82.txt
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Type: application/octet-stream
|
||||
|
||||
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
|
||||
--longrandomstring--
|
||||
.
|
||||
Reference in New Issue
Block a user