dovecot-1.0: Removed broken check for empty lines in maildirsize...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 23 12:35:55 EET 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/288fd70ac258
changeset: 5460:288fd70ac258
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 23 12:35:47 2007 +0200
description:
Removed broken check for empty lines in maildirsize, which could have caused
maildirsize recalculations to happen too often.

diffstat:

1 file changed, 4 deletions(-)
src/plugins/quota/quota-maildir.c |    4 ----

diffs (14 lines):

diff -r b3ec814cc791 -r 288fd70ac258 src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c	Wed Nov 21 13:24:25 2007 +0200
+++ b/src/plugins/quota/quota-maildir.c	Fri Nov 23 12:35:47 2007 +0200
@@ -384,10 +384,6 @@ static int maildirsize_parse(struct mail
 		total_bytes += bytes_diff;
 		total_count += count_diff;
 	}
-	/* we end always with LF, which shows up as empty last line. there
-	   should be no other empty lines */
-	if (lines[1] != NULL)
-		return -1;
 
 	if (total_bytes < 0 || total_count < 0) {
 		/* corrupted */


More information about the dovecot-cvs mailing list