Blame SOURCES/evolution-3.8.5-crash-mail-migration.patch

7c6d83
diff -up evolution-3.8.5/shell/e-convert-local-mail.c.crash-mail-migration evolution-3.8.5/shell/e-convert-local-mail.c
7c6d83
--- evolution-3.8.5/shell/e-convert-local-mail.c.crash-mail-migration	2013-07-23 14:52:25.000000000 +0200
7c6d83
+++ evolution-3.8.5/shell/e-convert-local-mail.c	2014-08-25 18:01:41.317092978 +0200
7c6d83
@@ -263,6 +263,13 @@ migrate_mbox_to_maildir (EShell *shell,
7c6d83
 	g_object_unref (maildir_service);
7c6d83
 	g_thread_unref (thread);
7c6d83
 
7c6d83
+	/* Folders can leave notifications in the main loop which would be delivered
7c6d83
+	   on idle, but these can be left in the main loop longer than the temporary
7c6d83
+	   CamelSession object is alive, which leads to a crash, because of
7c6d83
+	   the CamelStore's descendant being freed too early. */
7c6d83
+	while (g_main_context_pending (NULL))
7c6d83
+		g_main_context_iteration (NULL, TRUE);
7c6d83
+
7c6d83
 	return TRUE;
7c6d83
 }
7c6d83