Guillermo Grandes wrote:
EHLO Stefano :-)I have test this, work "half" ;-)
Better half than nothing ;-)
Now body is not corrupted, Content-Transfer-Encoding is set to 8bit, but the header:Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C0B2DF.DE9D0F20"Is removed and only maintains: "Content-Type: text/plain; charset=iso-8859-1"... the never ending story ... :-)
Well, they was 2 issues. If I fixed one of them supporting 8bitmime I'm happy for this.
The second issue is that your mail has 2 Content-Types: do you modify this message having 2 Content-Types via javamail for any conversion? Or it happens anyway because it adds the Content-Transfer-Encoding to 8bit?
Either way we have to define what to do in this scenario: we have 2 content-types. I'm not sure what we have to do when we try to parse such a message. Maybe that it is correct to keep only one of them, and we can't choose between them.
This seems a very specific case: can you try adding a Mailet to fix that specific case? Maybe you can use something similar:
---
String[] strings = mimeMessage.getHeader("Content-Type");
if (strings.length == 2) {
mimeMessage.setHeader("Content-Type",string[1]);
}
---
I want test the other non-issued problem in the work, I will comment to you tomorrow.--- Guillermo
I'm looking forward for your test! Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
