X-Git-Url: http://git.megacz.com/?p=org.ibex.mail.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2FNNTP.java;h=d758d73ffae05cf50f0aed3b233642b9e8e704ba;hp=f5c9fef150d772937c43602aa82949ee883fed5d;hb=40e53cd3c7abe25902add4c97b8bc9202f3c8931;hpb=c0cdaca74524315b01e9973c027e689627d3d58e diff --git a/src/org/ibex/mail/NNTP.java b/src/org/ibex/mail/NNTP.java index f5c9fef..d758d73 100644 --- a/src/org/ibex/mail/NNTP.java +++ b/src/org/ibex/mail/NNTP.java @@ -59,12 +59,12 @@ public class NNTP { } public static class MailboxWrapper implements Server { - private final MailboxTree root; + private final MailTree root; private Mailbox current; private int ptr = 0; private boolean post; - public MailboxWrapper(MailboxTree root) { this(root, false); } - public MailboxWrapper(MailboxTree root, boolean post) { this.root = root; this.post = post; } + public MailboxWrapper(MailTree root) { this(root, false); } + public MailboxWrapper(MailTree root, boolean post) { this.root = root; this.post = post; } public boolean postok() { return post; } public void post(Message m) throws IOException { current.post(m); } public Group group(String s) { @@ -91,7 +91,7 @@ public class NNTP { } catch (Exception e) { return null; } } public Group[] list() { return list(root, ""); } - private Group[] list(MailboxTree who, String prefix) { + private Group[] list(MailTree who, String prefix) { Vec v = new Vec(); if (who == null) who = root; String[] s = who.children(); @@ -106,14 +106,14 @@ public class NNTP { } private void setgroup(String s) { - MailboxTree ncurrent = root; + MailTree ncurrent = root; for(StringTokenizer st = new StringTokenizer(s, "."); ncurrent != null && st.hasMoreTokens(); ncurrent = ncurrent.slash(st.nextToken(), false)); if (ncurrent!=null) current=ncurrent.getMailbox(); } private Group getgroup(String s) { - MailboxTree box = root; + MailTree box = root; for(StringTokenizer st = new StringTokenizer(s, "."); box!=null && st.hasMoreTokens(); box = box.slash(st.nextToken(), false));