[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c,1.9,1.10
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/maildir
In directory danu:/tmp/cvs-serv8071/lib-storage/index/maildir
Modified Files:
maildir-list.c
Log Message:
If there's multiple mailboxes named "inbox", ignore them at least for now
(eg. /var/mail/inbox, ~/mail/inbox).
Index: maildir-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-list.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- maildir-list.c 27 Jan 2003 02:00:00 -0000 1.9
+++ maildir-list.c 31 Jan 2003 05:18:16 -0000 1.10
@@ -137,8 +137,13 @@
continue;
}
- if (strcasecmp(fname+1, "INBOX") == 0)
+ if (strcasecmp(fname+1, "INBOX") == 0) {
+ if (found_inbox) {
+ /* another inbox, ignore it */
+ continue;
+ }
found_inbox = TRUE;
+ }
t_push();
flags = maildir_get_marked_flags(storage, path);
More information about the dovecot-cvs
mailing list