[imp] attachments not showed with IMP 5.0.18
mailing lists
listas.correo at yahoo.es
Thu Feb 9 09:14:05 UTC 2012
>> ----77ad52058a31e0e63bf
>> Content-Type: message/rfc822
>> Content-Disposition: inline
>> Content-Transfer-Encoding:
>
> That empty Content-Transfer-Encoding is incorrect. It is most likely
> causing the parsing code on the IMAP server to incorrectly identify
> all the parts in the forwarded message.
>
> Note that this is NOT an issue that can be fixed in imp. We determine
> the structure of a message via the IMAP BODYSTRUCTURE command. If
> that command is giving us incorrect information, there is nothing we
> can do about it.
>
> In short, that e-mailer (Sun Messenger Express) is sending broken MIME
> messages.
I am not sure about this. The imap server (Dovecot 2.0.x) seems return de BODYSTRUCTURE correctly, at least Thunderbird is able to visualize that message.
* 3 FETCH (BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 26 2 NIL ("inline" NIL) NIL NIL)("message" "rfc822" NIL NIL NIL "" 70162 ("Wed, 08 Feb 2012 12:42:09 +0100" "Fwd: 7" (("=?ISO-8859-1?Q?Jos=E9?=" NIL "anyuser" "services.corp.com")) (("=?ISO-8859-1?Q?Jos=E9?=" NIL "anyuser" "services.corp.com")) (("=?ISO-8859-1?Q?Jos=E9?=" NIL "anyuser" "services.corp.com")) (("friend at example.com" NIL "friend" "example.com")) NIL NIL "<fa1ae73447fc.4f326a87 at example.com>" "<4F325F91.1020202 at services.corp.com>") (("text" "plain" ("charset" "ISO-8859-1" "format" "flowed") NIL NIL "quoted-printable" 1463 31 NIL NIL NIL NIL)("image" "jpeg" ("name" "books.jpg") NIL NIL "base64" 65990 NIL ("attachment" ("filename" "books.jpg")) NIL NIL) "mixed" ("boundary" "------------030702010400040005080305") NIL NIL NIL) 975 NIL ("inline" NIL) NIL NIL) "mixed" ("boundary" "--77ad52058a31e0e63bf") NIL ("gl") NIL))
also, I did a (deseperate) test fixing manually the Content-Transfer-Encoding field:
# diff /tmp/1328701542.M402642P24917.imap1\,S\=71708\,W\=72742\:2\,S 1328701542.M402642P24917.map1\,S\=71708\,W\=72742\:2\,S
56c56
< Content-Transfer-Encoding:
---
> Content-Transfer-Encoding: quoted-printable
and Dovecot returns exactly the same BODYSTRUCTURE.
So ... why, with the above BODYSTRUCTURE, thunderbid can show all attachments and IMP is not able to show it?
More information about the imp
mailing list