[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,
1.97, 1.98
cras at dovecot.org
cras at dovecot.org
Sat Sep 11 15:17:55 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv9357/lib-storage/index/mbox
Modified Files:
mbox-storage.c
Log Message:
Report INBOX as existing always, even if it doesn't yet exist in disk.
Fixes COPYing messages to INBOX when it didn't yet exist in disk.
Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- mbox-storage.c 10 Sep 2004 11:45:21 -0000 1.97
+++ mbox-storage.c 11 Sep 2004 12:17:53 -0000 1.98
@@ -762,7 +762,7 @@
}
path = mbox_get_path(storage, name);
- if (stat(path, &st) == 0) {
+ if (strcmp(name, "INBOX") == 0 || stat(path, &st) == 0) {
*status = MAILBOX_NAME_EXISTS;
return 0;
}
More information about the dovecot-cvs
mailing list