dovecot-2.0: mdbox: When purging finds that mailbox is corrupted...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 22 20:27:07 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/be6931536ee0
changeset: 11611:be6931536ee0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 22 18:27:03 2010 +0100
description:
mdbox: When purging finds that mailbox is corrupted, stop going through other files.

diffstat:

 src/lib-storage/index/dbox-multi/mdbox-purge.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 280fe153a7ba -r be6931536ee0 src/lib-storage/index/dbox-multi/mdbox-purge.c
--- a/src/lib-storage/index/dbox-multi/mdbox-purge.c	Tue Jun 22 15:53:02 2010 +0100
+++ b/src/lib-storage/index/dbox-multi/mdbox-purge.c	Tue Jun 22 18:27:03 2010 +0100
@@ -524,7 +524,7 @@
 	while (seq_range_array_iter_nth(&iter, i++, &file_id)) T_BEGIN {
 		file = mdbox_file_init(storage, file_id);
 		if (dbox_file_open(file, &deleted) > 0 && !deleted) {
-			if (mdbox_file_purge(ctx, file) < 0)
+			if (mdbox_file_purge(ctx, file) <= 0)
 				ret = -1;
 		} else {
 			mdbox_map_remove_file_id(storage->map, file_id);


More information about the dovecot-cvs mailing list