dovecot-1.2: virtual: Assert-crashfix when opening mailbox.

dovecot at dovecot.org dovecot at dovecot.org
Sun May 17 22:43:59 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/6810af53ae30
changeset: 9035:6810af53ae30
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 15:43:50 2009 -0400
description:
virtual: Assert-crashfix when opening mailbox.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/plugins/virtual/virtual-sync.c |    3 ++-

diffs (20 lines):

diff -r b77fbbee8749 -r 6810af53ae30 src/plugins/virtual/virtual-sync.c
--- a/src/plugins/virtual/virtual-sync.c	Sun May 17 15:43:03 2009 -0400
+++ b/src/plugins/virtual/virtual-sync.c	Sun May 17 15:43:50 2009 -0400
@@ -448,7 +448,6 @@ static int virtual_sync_backend_box_init
 	trans = mailbox_transaction_begin(bbox->box, 0);
 	mail = mail_alloc(trans, 0, NULL);
 
-	mail_search_args_init(bbox->search_args, bbox->box, FALSE, NULL);
 	search_ctx = mailbox_search_init(trans, bbox->search_args, NULL);
 
 	/* save the result and keep it updated */
@@ -891,6 +890,8 @@ static int virtual_sync_backend_box(stru
 				 &status) < 0)
 			return -1;
 
+		mail_search_args_init(bbox->search_args, bbox->box,
+				      FALSE, NULL);
 		virtual_backend_box_sync_mail_set(bbox);
 		if (status.uidvalidity != bbox->sync_uid_validity) {
 			/* UID validity changed since last sync (or this is


More information about the dovecot-cvs mailing list