[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-mail.c, 1.22.2.3, 1.22.2.4

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


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

Modified Files:
      Tag: branch_1_0
	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.22.2.3
retrieving revision 1.22.2.4
diff -u -d -r1.22.2.3 -r1.22.2.4
--- maildir-mail.c	27 Jun 2006 22:51:45 -0000	1.22.2.3
+++ maildir-mail.c	1 Jul 2006 17:53:45 -0000	1.22.2.4
@@ -209,6 +209,7 @@
 			_mail->expunged = TRUE;
 			return (uoff_t)-1;
 		}
+		path = NULL;
 	} else {
 		path = maildir_save_file_get_path(_mail->transaction,
 						  _mail->seq);
@@ -224,7 +225,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