myleetlist at gmx.de
2009-Nov-12 09:16 UTC
[Dovecot] fetch bodystructure filename problem rfc2231
Hi,
I have a problem with the filename of attachments in some clients.
# dovecot 1.2.(5|7)
* 3 FETCH (BODYSTRUCTURE (("text" "plain"
("charset" "us-ascii") NIL NIL "7bit" 13 1 NIL NIL
NIL NIL)("text" "plain" ("charset"
"UTF-8" "name"
"ISO-8859-1''testanh%E4ng.txt") NIL NIL "8bit" 27 1
NIL ("attachment" ("filename"
"ISO-8859-1''testanh%E4ng.txt")) NIL NIL) "mixed"
("boundary" "=-+zw7hjwJmiqfzphlbHnu") NIL NIL NIL))
-> wrong filename in client: ISO-8859-1''testanh%E4ng.txt
# cyrus
* 808 FETCH (BODYSTRUCTURE (("TEXT" "PLAIN" NIL NIL NIL
"7BIT" 13 1 NIL NIL NIL)("TEXT" "PLAIN"
("NAME*" {28}
ISO-8859-1''testanh%E4ng.txt "CHARSET" "UTF-8") NIL
NIL "8BIT" 27 1 NIL ("ATTACHMENT" ("FILENAME*"
{28}
ISO-8859-1''testanh%E4ng.txt)) NIL) "MIXED"
("BOUNDARY" "=-+zw7hjwJmiqfzphlbHnu") NIL NIL))
-> correct filename in client: testanh?ng.txt
I think "name" should be "name*" (rfc 2231?)
What can I do?
Test mail:
-->
Subject: test
From: ...
To: ...
Content-Type: multipart/mixed; boundary="=-+zw7hjwJmiqfzphlbHnu"
Date: Fri, 06 Nov 2009 09:48:26 +0000
Message-Id: <1257500906.7739.0.camel at localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.22.3.1
X-CheckCompat: OK
--=-+zw7hjwJmiqfzphlbHnu
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
inhalt mail
--=-+zw7hjwJmiqfzphlbHnu
Content-Disposition: attachment; filename*=ISO-8859-1''testanh%E4ng.txt
Content-Type: text/plain; name*=ISO-8859-1''testanh%E4ng.txt;
charset=UTF-8
Content-Transfer-Encoding: 8bit
inhalt.. auch mit umla?t
--=-+zw7hjwJmiqfzphlbHnu--
<--
--
DSL-Preisknaller: DSL Komplettpakete von GMX schon f?r
16,99 Euro mtl.!* Hier klicken: http://portal.gmx.net/de/go/dsl02
Timo Sirainen
2009-Nov-12 17:44 UTC
[Dovecot] fetch bodystructure filename problem rfc2231
On Thu, 2009-11-12 at 10:16 +0100, myleetlist at gmx.de wrote:> I think "name" should be "name*" (rfc 2231?)Yes, fixed: http://hg.dovecot.org/dovecot-1.2/rev/96b5d6d8dd2c -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091112/dc2cc989/attachment-0002.bin>
myleetlist at gmx.de
2009-Nov-16 06:37 UTC
[Dovecot] fetch bodystructure filename problem rfc2231
> > I think "name" should be "name*" (rfc 2231?) > > Yes, fixed: http://hg.dovecot.org/dovecot-1.2/rev/96b5d6d8dd2csorry, but the patch do not change anything - still the same output. -- GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01