[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-list.c,1.11,1.12
cras at procontrol.fi
cras at procontrol.fi
Fri Jan 31 07:18:19 EET 2003
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv8071/lib-storage/index/mbox
Modified Files:
mbox-list.c
Log Message:
If there's multiple mailboxes named "inbox", ignore them at least for now
(eg. /var/mail/inbox, ~/mail/inbox).
Index: mbox-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-list.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mbox-list.c 27 Jan 2003 02:00:00 -0000 1.11
+++ mbox-list.c 31 Jan 2003 05:18:16 -0000 1.12
@@ -121,7 +121,11 @@
break;
}
} else if (match > 0 &&
- strcmp(fullpath, storage->inbox_file) != 0) {
+ strcmp(fullpath, storage->inbox_file) != 0 &&
+ strcasecmp(listpath, "INBOX") != 0) {
+ /* don't match any INBOX here, it's added later.
+ we might also have ~/mail/inbox, ~/mail/Inbox etc.
+ Just ignore them for now. */
t_push();
callback(storage, listpath, MAILBOX_NOINFERIORS, context);
t_pop();
More information about the dovecot-cvs
mailing list