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();