[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp |
Date: |
Mon, 26 Apr 2010 23:26:27 +0300 |
Kostik <address@hidden> ha escrit:
> Sergey, how about fixs?
Pushed.
> Content-Transfer-Encoding: base64
> Content-Type: image/pjpeg; filename==?koi8-r?B?Yml6em9uYS5qcGc=?=
That's not a valid header. Quoth RFC 2045, 5.1.:
(1) content := "Content-Type" ":" type "/" subtype
*(";" parameter)
; Matching of media type and subtype
; is ALWAYS case-insensitive.
(2) parameter := attribute "=" value
(3) value := token / quoted-string
(4) token := 1*<any (US-ASCII) CHAR except SPACE, CTLs,
or tspecials>
(5) tspecials := "(" / ")" / "<" / ">" / "@" /
"," / ";" / ":" / "\" / <">
"/" / "[" / "]" / "?" / "="
; Must be in quoted-string,
; to use within parameter values
The (4) is violated because "=" is listed in (5).
We are trying to tolerate certain deviations from the standard, insofar
as their handling is practically feasible and does not disturb normal
processing. But this one is not a deviation, it is an open violation
of the standard.
> Content-Disposition: attachment; charset=koi8-r;
> filename==?koi8-r?B?Yml6em9uYS5qcGc=?=
Apart from the above, this header is lacking leading whitespace before
the continuation line. The MUA that produced it must be really broken.
Regards,
Sergey
- [bug-mailutils] Couple working issues about mailutils, Kostik, 2010/04/12
- [bug-mailutils] seems mailutils memory leaks, Kostik, 2010/04/14
- Re: [bug-mailutils] seems mailutils memory leaks, Sergey Poznyakoff, 2010/04/14
- Re: [bug-mailutils] seems mailutils memory leaks, Kostik, 2010/04/14
- Re: [bug-mailutils] seems mailutils memory leaks, Sergey Poznyakoff, 2010/04/14
- Re: [bug-mailutils] seems mailutils memory leaks, Kostik, 2010/04/15
- [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Kostik, 2010/04/19
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Sergey Poznyakoff, 2010/04/20
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Kostik, 2010/04/26
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp,
Sergey Poznyakoff <=
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Kostik, 2010/04/27
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Sergey Poznyakoff, 2010/04/27
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Kostik, 2010/04/28
- Re: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp, Sergey Poznyakoff, 2010/04/29
[bug-mailutils] Re: seems mailutils memory leaks, Kostik, 2010/04/14