[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,
1.124, 1.125
cras at dovecot.org
cras at dovecot.org
Fri Oct 7 12:42:39 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv4606/lib-storage/index/mbox
Modified Files:
mbox-storage.c
Log Message:
If mbox root directory doesn't exist, create it instead of just giving error
message.
Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- mbox-storage.c 1 Oct 2005 09:47:17 -0000 1.124
+++ mbox-storage.c 7 Oct 2005 09:42:35 -0000 1.125
@@ -269,12 +269,8 @@
i_info("mbox: data=%s", data);
p = strchr(data, ':');
if (p == NULL) {
- if (stat(data, &st) < 0) {
- i_error("Invalid mbox path %s: %m", data);
- return NULL;
- }
-
- if (S_ISDIR(st.st_mode))
+ /* if the data points to a file, treat it as an INBOX */
+ if (stat(data, &st) < 0 || S_ISDIR(st.st_mode))
root_dir = data;
else {
root_dir = get_root_dir(flags);
More information about the dovecot-cvs
mailing list