james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1058285 - in /james/mime4j/branches/dom-api-refactoring: dom/ examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
Date Wed, 12 Jan 2011 19:31:46 GMT
Author: olegk
Date: Wed Jan 12 19:31:46 2011
New Revision: 1058285

URL: http://svn.apache.org/viewvc?rev=1058285&view=rev
Log:
Fixed API breakage

Modified:
    james/mime4j/branches/dom-api-refactoring/dom/   (props changed)
    james/mime4j/branches/dom-api-refactoring/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java

Propchange: james/mime4j/branches/dom-api-refactoring/dom/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Jan 12 19:31:46 2011
@@ -0,0 +1,3 @@
+.settings
+.classpath
+.project

Modified: james/mime4j/branches/dom-api-refactoring/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java?rev=1058285&r1=1058284&r2=1058285&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
Wed Jan 12 19:31:46 2011
@@ -53,6 +53,7 @@ import org.apache.james.mime4j.dom.field
 import org.apache.james.mime4j.dom.field.DateTimeField;
 import org.apache.james.mime4j.dom.field.Field;
 import org.apache.james.mime4j.dom.field.UnstructuredField;
+import org.apache.james.mime4j.field.address.formatter.AddressFormatter;
 import org.apache.james.mime4j.message.BodyPart;
 import org.apache.james.mime4j.message.MessageImpl;
 
@@ -312,7 +313,7 @@ public class MessageTree extends JPanel 
                 StringBuilder sb = new StringBuilder();
                 for (int i = 0; i < list.size(); i++) {
                     Mailbox mb = list.get(i);
-                    sb.append(mb.getDisplayString() + "\n");
+                    sb.append(AddressFormatter.format(mb, false) + "\n");
                 }
                 textView.setText(sb.toString());
                 



Mime
View raw message