#3811: Header parameter with RFC2231 continuation joined in wrong order
----------------------+----------------------
 Reporter:  mwiesner  |      Owner:  mutt-dev
     Type:  defect    |     Status:  new
 Priority:  minor     |  Milestone:
Component:  MIME      |    Version:  1.5.24
 Keywords:            |
----------------------+----------------------
 The filename of an attachment with

 {{{
 Content-Type: text/plain
 Content-Disposition: attachment; filename*0*=UTF-8''t; filename*1*=%c3%a4;
         filename*2=st.txt
 }}}

 gets decoded as "tst.txtä" (0-2-1) instead of "täst.txt" (0-1-2)

 Another test with

 {{{
 Content-Type: text/plain
 Content-Disposition: attachment; filename*0*=UTF-8''t; filename*1*=%c3%a4;
         filename*2=st1-t; filename*3*=%c3%b6; filename*4=st2.txt
 }}}

 gets decoded as "tst2.txtst1-täö" (0-4-2-1-3) instead of "täst1-töst2.txt"
 (0-1-2-3-4)

 The header was generated by Coldfusion with CFMAIL. Thunderbird and GMX-
 Webmail both show it as expected so i think the encoding itself is maybe a
 bit strange ;-) but still correct?

 Tested with an unpatched mutt 1.5.24 (from Slackware-current)

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3811>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to