$Log$
+ Revision 591.2 2002/04/05 04:25:56 ajc
+ * Support nested folders in IMAP. We might want to change the delimiter.
+
Revision 591.1 2002/04/04 23:25:30 ajc
* Experimental hacking to handle subfolderization in IMAP. Seems to work ok
but it makes Mozilla mail hang. Will investigate more later...
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
safestrncpy(rbuf, MAILROOM, bufsize);
ret = (0 | IR_MAILBOX);
}
-
- if (levels > 1) {
+ else if (levels > 1) {
extract(floorname, foldername, 0);
strcpy(roomname, &foldername[strlen(floorname)+1]);
for (i = 0; i < MAXFLOORS; ++i) {
if (ra & UA_KNOWN) {
imap_mailboxname(buf, sizeof buf, qrbuf);
if (imap_mailbox_matches_pattern(pattern, buf)) {
- cprintf("* LSUB ");
+ cprintf("* LSUB (");
if (!strcasecmp(buf, "INBOX")) {
- cprintf("(\\NoInferiors) ");
+ cprintf("\\NoInferiors");
}
- cprintf("\"|\" ");
+ cprintf(") \"|\" ");
imap_strout(buf);
cprintf("\r\n");
}
|| ((ra & UA_GOTOALLOWED) && (ra & UA_ZAPPED))) {
imap_mailboxname(buf, sizeof buf, qrbuf);
if (imap_mailbox_matches_pattern(pattern, buf)) {
- cprintf("* LIST ");
+ cprintf("* LIST (");
if (!strcasecmp(buf, "INBOX")) {
- cprintf("(\\NoInferiors) ");
+ cprintf("\\NoInferiors");
}
- cprintf("\"|\" ");
+ cprintf(") \"|\" ");
imap_strout(buf);
cprintf("\r\n");
}