with freebsd's regcomp, "^INBOX/[^\/]*?/[^\/]*$" will simply end up with error `REG_BADRPT'. so, binc on my freebsd box will never list any folders by imap command such as `list "" "INBOX/%/%"'.
i don't know whether the syntax above is actually ok but freebsd is too square, or linux is too flexible.
but i think my patch is reasonable enough for even linux, too.
if someone is using freebsd or other system based upon ``square'' regcomp implementation (so that you can't see any deeper folders), try this patch.
thanks, -- Hiroshima
--- src/util/convert.h.orig Mon May 5 10:42:20 2003
+++ src/util/convert.h Tue May 27 16:55:32 2003
@@ -258,10 +258,10 @@
regex += "\\";
regex += *i;
} else if (*i == '*')
- regex += ".*?";
+ regex += "(.*)?";
else if (*i == '%') {
- regex += "[^\\";
+ regex += "([^\\";
regex += delimiter;
- regex += "]*?";
+ regex += "]*)?";
} else regex += *i;
}

