james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r738869 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java
Date Thu, 29 Jan 2009 14:47:16 GMT
Author: mwiederkehr
Date: Thu Jan 29 14:47:15 2009
New Revision: 738869

URL: http://svn.apache.org/viewvc?rev=738869&view=rev
Log:
call Field.getRaw instead of toString (toString is for a person to read)

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java?rev=738869&r1=738868&r2=738869&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/Header.java Thu Jan 29
14:47:15 2009
@@ -279,7 +279,7 @@
         BufferedWriter writer = new BufferedWriter(
                 new OutputStreamWriter(out, charset), 8192);
         for (Field field : fields) {
-            String fs = field.toString();
+            String fs = field.getRaw();
             if (mode == Mode.STRICT_ERROR && !CharsetUtil.isASCII(fs)) {
                 throw new MimeIOException(new MimeException("Header '" + fs + "' violates
RFC 822"));
             }



Mime
View raw message