From 664206faba6f5a196f9c4f2c51b542f9c2bc41e0 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 4 Oct 2001 20:02:00 +0000 Subject: Only create the folder when the shell has created it. svn path=/trunk/; revision=13420 --- mail/ChangeLog | 6 ++++++ mail/component-factory.c | 2 +- mail/importers/evolution-mbox-importer.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 0a76f0e0ca..5799fa160a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-10-04 Iain Holmes + + * importers/evolution-mbox-importer.c (load_file_fn): Only pass + CAMEL_STORE_FOLDER_CREATE when the shell will be creating the + folder. + 2001-10-04 * mail-callbacks.c (configure_folder): If we're accessing a diff --git a/mail/component-factory.c b/mail/component-factory.c index 74fac2b39f..ab632031ea 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -182,7 +182,7 @@ create_folder_done (char *uri, CamelFolder *folder, void *data) GNOME_Evolution_ShellComponentListener listener = data; GNOME_Evolution_ShellComponentListener_Result result; CORBA_Environment ev; - + if (folder) { result = GNOME_Evolution_ShellComponentListener_OK; } else { diff --git a/mail/importers/evolution-mbox-importer.c b/mail/importers/evolution-mbox-importer.c index 23fce7eb7a..9cdf6fa732 100644 --- a/mail/importers/evolution-mbox-importer.c +++ b/mail/importers/evolution-mbox-importer.c @@ -269,7 +269,7 @@ load_file_fn (EvolutionImporter *eimporter, fullpath = e_path_to_physical (homedir, folderpath); ex = camel_exception_new (); - importer->folder = mail_tool_uri_to_folder (fullpath, CAMEL_STORE_FOLDER_CREATE, ex); + importer->folder = mail_tool_uri_to_folder (fullpath, 0, ex); g_free (homedir); if (camel_exception_is_set (ex) || importer->folder == NULL) { @@ -300,7 +300,7 @@ load_file_fn (EvolutionImporter *eimporter, } if (importer->folder == NULL && delayed == FALSE){ - g_print ("Bad folder\n"); + g_warning ("Bad folder\n"); goto fail; } -- cgit