dovecot-2.2: maildir: If maildir_broken_filename_sizes=yes, don'...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 27 21:10:42 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/6d9444ea1c9a
changeset: 16125:6d9444ea1c9a
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 27 21:10:35 2013 +0200
description:
maildir: If maildir_broken_filename_sizes=yes, don't try to fix sizes in filenames.

diffstat:

 src/lib-storage/index/maildir/maildir-mail.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r d4014211c154 -r 6d9444ea1c9a src/lib-storage/index/maildir/maildir-mail.c
--- a/src/lib-storage/index/maildir/maildir-mail.c	Wed Mar 27 14:45:14 2013 +0200
+++ b/src/lib-storage/index/maildir/maildir-mail.c	Wed Mar 27 21:10:35 2013 +0200
@@ -687,6 +687,11 @@
 	uoff_t size;
 	char wrong_key;
 
+	if (mbox->storage->set->maildir_broken_filename_sizes) {
+		/* never try to fix sizes in maildir filenames */
+		return;
+	}
+
 	if (maildir_sync_lookup(mbox, mail->uid, &flags, &fname) <= 0)
 		return;
 	if (strchr(fname, MAILDIR_EXTRA_SEP) == NULL)


More information about the dovecot-cvs mailing list