ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15434] - MimeMailer doesn't work properly with national charset
Date Thu, 21 Aug 2003 15:32:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15434>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15434

MimeMailer doesn't work properly with national charset





------- Additional Comments From antoine@apache.org  2003-08-21 15:32 -------
While working on another email issue, I realized that the charset attribute 
should be used in the headers in the PlainMailer. 
So I have put this piece of code in PlainMailer.
            if (message.getCharset() != null) {
                mailMessage.setHeader("Content-Type", message.getMimeType()
                    + "; charset=\"" + message.getCharset() + "\"");

            } else {
                mailMessage.setHeader("Content-Type", message.getMimeType());
            }
PlainMailer did not specify the charset before.
I have tested this by sending to myself with ant an email message in hebrew.
Works like a charm.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message