[dovecot-cvs] dovecot/src/lib-storage/index/cydir cydir-mail.c, 1.1, 1.2

tss at dovecot.org tss at dovecot.org
Sun May 13 20:22:41 EEST 2007


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

Modified Files:
	cydir-mail.c 
Log Message:
Added MAIL_ERROR_EXPUNGED. Set the error whenever expunged message is tried
to be accessed.



Index: cydir-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/cydir/cydir-mail.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cydir-mail.c	30 Mar 2007 12:09:00 -0000	1.1
+++ cydir-mail.c	13 May 2007 17:22:39 -0000	1.2
@@ -25,7 +25,7 @@
 	path = cydir_mail_get_path(mail);
 	if (stat(path, st_r) < 0) {
 		if (errno == ENOENT)
-			mail->expunged = TRUE;
+			mail_set_expunged(mail);
 		else {
 			mail_storage_set_critical(mail->box->storage,
 						  "stat(%s) failed: %m", path);
@@ -104,7 +104,7 @@
 		fd = open(path, O_RDONLY);
 		if (fd == -1) {
 			if (errno == ENOENT)
-				_mail->expunged = TRUE;
+				mail_set_expunged(_mail);
 			else {
 				mail_storage_set_critical(_mail->box->storage,
 					"open(%s) failed: %m", path);



More information about the dovecot-cvs mailing list