implemented bounce messages
[org.ibex.mail.git] / src / org / ibex / mail / protocol / NNTP.java
index f1291b6..ddaeeba 100644 (file)
@@ -133,7 +133,7 @@ public class NNTP {
             if (head) println(a.message.headers.getString());
             if (head && body) println();
             if (body) {
-                Stream stream = a.message.getBody();
+                Stream stream = a.message.getBody().getStream();
                 while(true) {
                     s = stream.readln();
                     if (s == null) break;
@@ -201,7 +201,7 @@ public class NNTP {
                         try {
                             Message m = it.cur();
                             println(it.num()+"\t"+m.subject+"\t"+m.from+"\t"+m.date+"\t"+m.messageid+"\t"+
-                                    m.headers.get("references") + "\t" + m.size() + "\t" + m.lines());
+                                    m.headers.get("references") + "\t" + m.getLength() + "\t" + m.getNumLines());
                         } catch (Exception e) { Log.error(this, e); }
                     }
                     println(".");