conflict resolution
[org.ibex.mail.git] / src / org / ibex / mail / protocol / NNTP.java
index 523c6ea..55d2136 100644 (file)
@@ -65,8 +65,7 @@ public class NNTP {
         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 Group    group(String s)         {
+        public Group    group(String s) {
             ptr = 0;
             Group g = getgroup(s);
             if (g==null) return null;
@@ -112,7 +111,15 @@ public class NNTP {
         }
         private Group getgroup(String s) {
             Mailbox box = root;
+v v v v v v v
+            Log.error("", "getgroup " + s);
+            Log.error("", "mailbox " + root);
             for(StringTokenizer st = new StringTokenizer(s, "."); box!=null && st.hasMoreTokens(); box = box.slash(st.nextToken(), false));
+*************
+            for(StringTokenizer st = new StringTokenizer(s, ".");
+                box!=null && st.hasMoreTokens();
+                box = box.slash(st.nextToken(), false));
+^ ^ ^ ^ ^ ^ ^
             if (box==null) return null;
             return new Group(s, true, 1, box.count(Query.all()), box.count(Query.all()));
         }