made newMessage a static method and Message() private
[org.ibex.mail.git] / src / org / ibex / mail / protocol / Mbox.java
index e0e02d5..82d2d92 100644 (file)
@@ -18,7 +18,7 @@ public class Mbox {
         for(String s = stream.readln(); ; s = stream.readln()) {
             if (s == null || s.startsWith("From ")) {
                 try {
-                    if (buf != null) vec.addElement(new Message(new Stream(buf.toString()), null));
+                    if (buf != null) vec.addElement(Message.newMessage(new Stream(buf.toString())));
                 } catch (Exception e) { Log.warn(Mbox.class, e); }
                 if (s == null) break;
                 buf = new StringBuffer();