[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-list.c,1.3,1.4
cras at procontrol.fi
cras at procontrol.fi
Tue Dec 17 06:53:01 EET 2002
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv15132/lib-storage/index/mbox
Modified Files:
mbox-list.c
Log Message:
LIST: If our root folder doesn't exists, complain about it. Otherwise just
ignore those errors.
Index: mbox-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-list.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mbox-list.c 3 Dec 2002 22:44:38 -0000 1.3
+++ mbox-list.c 17 Dec 2002 04:52:59 -0000 1.4
@@ -39,11 +39,17 @@
dirp = opendir(dir);
if (dirp == NULL) {
- if (errno != ENOENT && errno != ENOTDIR) {
- mail_storage_set_critical(storage,
- "opendir(%s) failed: %m", dir);
- }
t_pop();
+
+ if (relative_dir != NULL &&
+ (errno == ENOENT || errno == ENOTDIR)) {
+ /* probably just race condition with other client
+ deleting the mailbox. */
+ return TRUE;
+ }
+
+ mail_storage_set_critical(storage,
+ "opendir(%s) failed: %m", dir);
return FALSE;
}
More information about the dovecot-cvs
mailing list