# HG changeset patch # User Timo Sirainen # Date 1243312716 14400 # Node ID b2b9cbe17d1bb578c6b93956dccd5ab041b2b188 # Parent 8eaa3476bdef2c9527688b69635f03d87c28a667 convert plugin: Don't crash after finishing conversion. diff -r 8eaa3476bdef -r b2b9cbe17d1b src/plugins/convert/convert-storage.c --- 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;