diff options
Diffstat (limited to 'mail/importers/evolution-mbox-importer.c')
-rw-r--r-- | mail/importers/evolution-mbox-importer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/importers/evolution-mbox-importer.c b/mail/importers/evolution-mbox-importer.c index b39691f0dc..aa701d9f25 100644 --- a/mail/importers/evolution-mbox-importer.c +++ b/mail/importers/evolution-mbox-importer.c @@ -171,6 +171,7 @@ importer_destroy_cb (GtkObject *object, static gboolean load_file_fn (EvolutionImporter *eimporter, const char *filename, + const char *folderpath, void *closure) { MboxImporter *mbi; @@ -196,7 +197,10 @@ load_file_fn (EvolutionImporter *eimporter, } importer->mstream = NULL; - importer->folder = mail_tool_get_local_inbox (NULL); + if (folderpath == NULL) + importer->folder = mail_tool_get_local_inbox (NULL); + else + importer->folder = mail_tool_uri_to_folder (folderpath, NULL); if (importer->folder == NULL){ g_print ("Bad folder\n"); |