[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-mail.c, 1.27, 1.28

cras at dovecot.org cras at dovecot.org
Sat Jul 1 20:53:57 EEST 2006


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

Modified Files:
	maildir-mail.c 
Log Message:
mail_get_physical_size() was broken with non-committed mails, which broke
quota plugin.



Index: maildir-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-mail.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- maildir-mail.c	29 Jun 2006 11:08:58 -0000	1.27
+++ maildir-mail.c	1 Jul 2006 17:53:55 -0000	1.28
@@ -236,6 +236,7 @@
 			_mail->expunged = TRUE;
 			return (uoff_t)-1;
 		}
+		path = NULL;
 	} else {
 		path = maildir_save_file_get_path(_mail->transaction,
 						  _mail->seq);
@@ -251,7 +252,7 @@
 				return (uoff_t)-1;
 		} else {
 			/* saved mail which hasn't been committed yet */
-			if (do_stat(mbox, fname, &st) <= 0)
+			if (do_stat(mbox, path, &st) <= 0)
 				return (uoff_t)-1;
 		}
 		size = st.st_size;



More information about the dovecot-cvs mailing list