changeset 9089:b2b9cbe17d1b HEAD

convert plugin: Don't crash after finishing conversion.
author Timo Sirainen <tss@iki.fi>
date Tue, 26 May 2009 00:38:36 -0400
parents 8eaa3476bdef
children 7c162aa78714
files src/plugins/convert/convert-storage.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/convert/convert-storage.c	Mon May 25 23:43:39 2009 -0400
+++ b/src/plugins/convert/convert-storage.c	Tue May 26 00:38:36 2009 -0400
@@ -403,7 +403,10 @@
 	const char *home, *path, *error;
 	int ret;
 
+	i_assert(user->namespaces == dest_namespaces);
 	source_ns = mail_namespaces_init_empty(user);
+	user->namespaces = dest_namespaces;
+
 	dest_inbox_ns = mail_namespace_find_inbox(dest_namespaces);
 	src_flags = dest_inbox_ns->storage->flags;
 	lock_method = dest_inbox_ns->storage->lock_method;