[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.83, 1.84

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/maildir
In directory talvi:/tmp/cvs-serv9357/lib-storage/index/maildir

Modified Files:
	maildir-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: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- maildir-storage.c	22 Aug 2004 09:17:08 -0000	1.83
+++ maildir-storage.c	11 Sep 2004 12:17:53 -0000	1.84
@@ -702,7 +702,7 @@
 	}
 
 	path = maildir_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