Norman Maurer wrote:
It seems there is a bug in AddFooter mailet..

if i add the fooder some special chars get broken (Umlaute)

I saved the mail to a repository before use AddFooter and after it. Here
is the email:

before:

I'm almost sure the problem arised with the new 8bitmime support. I'm not sure if the bug is in AddFooter, in RemoteDelivery or in Javamail.

Javamail, while sending, looks the message body and if it finds 8 bit chars then it change the header to 8bit (there should no be chars with code greater than 127 in 7bit bodies).

Here is what SMTPTransport (javamail 1.3.2 SUN) does with a message when 8bitmime is enabled:
private void convertTo8Bit(MimePart part) {
   if (part.isMimeType("text/*"))
      String enc = part.getEncoding();
      if (enc.equalsIgnoreCase("quoted-printable") ||
            enc.equalsIgnoreCase("base64")) {
          InputStream is = part.getInputStream();
          if (is8Bit(is))
              part.setHeader("Content-Transfer-Encoding", "8bit");
      }
     [...]
     cycle multipart parts


is8Bit returns true only if it find chars with a code greater than 127.

The problem is that getInputStream (from javadocs) return a *decoded* stream!

Maybe this is a bug in javamail: I searched the bug database at SUN but I have not found reports.

Any idea?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to