On 07.10.2011 20:05, Pedro Padron wrote:
One of our customers has an application that sends him emails with XML files attached. This app doesn't write the correct headers, so it looks like this:
--AaBb--984dfgeSSd3532 Content-Type: application/xml; name=whatever.xml Content-Transfer-Encoding: base64Content-Disposition: attachment; filename=whatever.xml
<really><long><xml><file><here><without><line><breaks>
You can see that Content-Transfer-Encoding was supposed to be base64, but it has a lame syntax error. The XML file is not base64 encoded, it is very long XML in a single line.
Because of this, when the client downloads the attachment from Roundcube, the XML is broken because Roundcube added line breaks to its contents, giving us somtething like:
Works for me. Enable imap_debug in roundcube and check e.g. BODYSTRUCTURE returned by your server. What version?