dovecot-2.0: mdbox: Don't fail storage rebuild just because stor...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 29 00:01:02 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/243166e7dd2d
changeset: 11651:243166e7dd2d
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 28 21:58:42 2010 +0100
description:
mdbox: Don't fail storage rebuild just because storage/ directory doesn't exist.
It may be an account for a new user that doesn't yet have any mails.

diffstat:

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

diffs (24 lines):

diff -r 267ad2b32276 -r 243166e7dd2d src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Mon Jun 28 21:34:45 2010 +0100
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Mon Jun 28 21:58:42 2010 +0100
@@ -887,20 +887,8 @@
 				     struct mdbox_map_atomic_context *atomic)
 {
 	struct mdbox_storage_rebuild_context *ctx;
-	struct stat st;
 	int ret;
 
-	if (stat(storage->storage_dir, &st) < 0) {
-		if (errno == ENOENT) {
-			/* no multi-dbox files */
-			return 0;
-		}
-
-		mail_storage_set_critical(&storage->storage.storage,
-			"stat(%s) failed: %m", storage->storage_dir);
-		return -1;
-	}
-
 	ctx = mdbox_storage_rebuild_init(storage, atomic);
 	ret = mdbox_storage_rebuild_scan(ctx);
 	mdbox_storage_rebuild_deinit(ctx);


More information about the dovecot-cvs mailing list