[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.75, 1.76

cras at dovecot.org cras at dovecot.org
Mon Apr 17 20:31:56 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv26119

Modified Files:
	maildir-sync.c 
Log Message:
If maildir is readonly, don't complain about rename() failing to move mails
from new/ to cur/.



Index: maildir-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- maildir-sync.c	9 Apr 2006 15:50:27 -0000	1.75
+++ maildir-sync.c	17 Apr 2006 17:31:54 -0000	1.76
@@ -699,8 +699,9 @@
 				/* someone else moved it already */
 				moves++;
 				flags |= MAILDIR_UIDLIST_REC_FLAG_MOVED;
-			} else if (ENOSPACE(errno)) {
-				/* not enough disk space, leave here */
+			} else if (ENOSPACE(errno) || errno == EACCES) {
+				/* not enough disk space / read-only maildir,
+				   leave here */
 				flags |= MAILDIR_UIDLIST_REC_FLAG_NEW_DIR |
 					MAILDIR_UIDLIST_REC_FLAG_RECENT;
 				move_new = FALSE;



More information about the dovecot-cvs mailing list