dovecot-2.2-pigeonhole: Don't access ns->storage.

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Tue Jun 18 09:35:10 EEST 2013


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/204d48dc7529
changeset: 1780:204d48dc7529
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Jun 18 08:11:37 2013 +0200
description:
Don't access ns->storage.
Patch by Timo Sirainen.

diffstat:

 src/sieve-tools/sieve-filter.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ca6735be7bba -r 204d48dc7529 src/sieve-tools/sieve-filter.c
--- a/src/sieve-tools/sieve-filter.c	Sun Jun 02 16:08:22 2013 +0200
+++ b/src/sieve-tools/sieve-filter.c	Tue Jun 18 08:11:37 2013 +0200
@@ -505,7 +505,7 @@
 	src_box = mailbox_alloc(ns->list, src_mailbox, open_flags);
 	if ( mailbox_open(src_box) < 0 ) {
 		i_fatal("Couldn't open source mailbox '%s': %s",
-			src_mailbox, mail_storage_get_last_error(ns->storage, &error));
+			src_mailbox, mailbox_get_last_error(src_box, &error));
 	}
 
 	/* Open move box if necessary */
@@ -520,7 +520,7 @@
 		move_box = mailbox_alloc(ns->list, move_mailbox, open_flags);
 		if ( mailbox_open(move_box) < 0 ) {
 			i_fatal("Couldn't open mailbox '%s': %s",
-				move_mailbox, mail_storage_get_last_error(ns->storage, &error));
+				move_mailbox, mailbox_get_last_error(move_box, &error));
 		}
 
 		if ( mailbox_backends_equal(src_box, move_box) ) {


More information about the dovecot-cvs mailing list