[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-lock.c, 1.23, 1.24

cras at dovecot.org cras at dovecot.org
Sat Apr 1 12:15:47 EEST 2006


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

Modified Files:
	mbox-lock.c 
Log Message:
If we can't lock mbox file, mark those errors as temporary so LDA treats
them as temporary errors instead of bouncing.



Index: mbox-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-lock.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- mbox-lock.c	14 Feb 2006 13:07:01 -0000	1.23
+++ mbox-lock.c	1 Apr 2006 09:15:45 -0000	1.24
@@ -262,6 +262,7 @@
 	if (ret == 0) {
 		mail_storage_set_error(STORAGE(mbox->storage),
 				       "Timeout while waiting for lock");
+		STORAGE(mbox->storage)->temporary_error = TRUE;
 		return 0;
 	}
 	mbox->mbox_dotlocked = TRUE;
@@ -488,6 +489,7 @@
 		if (ret == 0) {
 			mail_storage_set_error(STORAGE(mbox->storage),
 				"Timeout while waiting for lock");
+			STORAGE(mbox->storage)->temporary_error = TRUE;
 		}
 		return ret;
 	}



More information about the dovecot-cvs mailing list