* Content-Type: =?windows-1252?q?application/pdf; considered as text/plain
@ 2019-10-16 6:29 Denis Bitouzé
2019-10-19 14:58 ` Florian Weimer
0 siblings, 1 reply; 2+ messages in thread
From: Denis Bitouzé @ 2019-10-16 6:29 UTC (permalink / raw)
To: ding-smP1P7uqpqc
Hi,
here is an excerpt of a mail I received:
┌────
│ This is a multi-part message in MIME format.
│ --------------090708010503020305020500
│ Content-Type: text/plain; charset=ISO-8859-1; format=flowed
│ Content-Transfer-Encoding: quoted-printable
│
│ [...]
│
│ --------------090708010503020305020500
│ Content-Type: =?windows-1252?q?application/pdf;
│ name="PVCONSEIL DIRECTION 09 Septembre 2019.pdf"
│ Content-Transfer-Encoding: base64
│ Content-Disposition: attachment;
│
│ [...]
└────
Strangely enough, the attached PDF file is considered by Gnus as a plain
text file.
┌────
│ text/plain; PVCONSEIL DIRECTION 09 Septembre 2019.pdf
└────
Do you know what's going on?
Thanks.
--
Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Content-Type: =?windows-1252?q?application/pdf; considered as text/plain
2019-10-16 6:29 Content-Type: =?windows-1252?q?application/pdf; considered as text/plain Denis Bitouzé
@ 2019-10-19 14:58 ` Florian Weimer
0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2019-10-19 14:58 UTC (permalink / raw)
To: Denis Bitouzé; +Cc: ding
* Denis Bitouzé:
> │ Content-Type: =?windows-1252?q?application/pdf;
> │ name="PVCONSEIL DIRECTION 09 Septembre 2019.pdf"
> Strangely enough, the attached PDF file is considered by Gnus as a plain
> text file.
>
> ┌────
> │ text/plain; PVCONSEIL DIRECTION 09 Septembre 2019.pdf
> └────
>
> Do you know what's going on?
Reading Section 5.1 of RFC 2045 and section 5 of RFC 2047
<https://tools.ietf.org/html/rfc2045#section-5.1>
<https://tools.ietf.org/html/rfc2047#section-5>
I don't think encoded-words are allowed in Content-Type headers. The
latter is quite explicit about this:
| + An 'encoded-word' MUST NOT be used in parameter of a MIME
| Content-Type or Content-Disposition field, or in any structured
| field body except within a 'comment' or 'phrase'.
So I would say that the message is malformed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-19 14:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 6:29 Content-Type: =?windows-1252?q?application/pdf; considered as text/plain Denis Bitouzé
2019-10-19 14:58 ` Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).