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