forked from Silverfish/proton-bridge
GODT-1141 Use attachment name from content type if not specified in content disposition
This commit is contained in:
committed by
Jakub Cuth
parent
4038752a9a
commit
ee961ae4a8
14
pkg/message/testdata/text_plain_octet_attachment_name_conflict.eml
vendored
Normal file
14
pkg/message/testdata/text_plain_octet_attachment_name_conflict.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; name="attachment-contenttype.txt"
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment; filename="attachment-disposition.txt"
|
||||
|
||||
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
|
||||
--longrandomstring--
|
||||
14
pkg/message/testdata/text_plain_octet_attachment_name_in_contenttype.eml
vendored
Normal file
14
pkg/message/testdata/text_plain_octet_attachment_name_in_contenttype.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; name="attachment-contenttype.txt"
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment
|
||||
|
||||
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
|
||||
--longrandomstring--
|
||||
Reference in New Issue
Block a user