reshuffling of file locations to make package structure flatter
[org.ibex.mail.git] / src / org / ibex / mail / NNTP.java
similarity index 99%
rename from src/org/ibex/mail/protocol/NNTP.java
rename to src/org/ibex/mail/NNTP.java
index 284cf04..a0d8dd6 100644 (file)
@@ -7,11 +7,12 @@
 // 503 optional subfeature not supported 
 // Xref header
 // LIST EXTENSIONS is probably incomplete
+// pull mode (ie suck)
+// control message processing?
 
-package org.ibex.mail.protocol;
+package org.ibex.mail;
 import org.ibex.util.*;
 import org.ibex.io.*;
-import org.ibex.mail.*;
 import org.ibex.mail.target.*;
 import org.ibex.jinetd.*;
 import java.io.*;
@@ -64,7 +65,7 @@ public class NNTP {
         public MailboxWrapper(Mailbox root) { this(root, false); }
         public MailboxWrapper(Mailbox root, boolean post) { this.root = root; this.post = post; }
         public boolean  postok() { return post; }
-        public void     post(Message m) throws IOException { current.accept(m); }
+        public void     post(Message m) throws IOException { current.post(m); }
         public Group    group(String s) {
             ptr = 0;
             Group g = getgroup(s);