aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-08-08 11:55:11 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-08-08 11:55:11 +0800
commitb9eece78e66a15307e549d7ec5f03e624030a970 (patch)
tree5dab14feec545334e1af7871733bf8b69334ebca /mail/folder-browser.c
parenta7943ce5a42ef266579e60ce272c9ee3f547be03 (diff)
downloadgsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.tar
gsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.tar.gz
gsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.tar.bz2
gsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.tar.lz
gsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.tar.xz
gsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.tar.zst
gsoc2013-evolution-b9eece78e66a15307e549d7ec5f03e624030a970.zip
Redone to show a dialogue first, and show progress of whats happening as
2000-08-07 Not Zed <NotZed@HelixCode.com> * mail-local.c (local_reconfigure_folder): Redone to show a dialogue first, and show progress of whats happening as its done. * Makefile.am (glade_DATA): Added local-config.glade, for mailbox reconfig dialogue. 2000-08-04 Not Zed <NotZed@HelixCode.com> * folder-browser.c (mail_uri_to_folder): Use local_uri_to_folder() for local uri's (file://). * mail-local.c (local_uri_to_folder): Handle looking up folder storage type before opening the store/folder. (local_reconfigure_folder): Function to reconfigure the format of a local mailbox into another storage format. * Makefile.am (evolution_mail_SOURCES): Added mail-local.c and missing mail-vfolder.h. svn path=/trunk/; revision=4591
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 27f345fce0..5665d8bce3 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -23,6 +23,8 @@
#include "filter/filter-option.h"
#include "filter/filter-input.h"
+#include "mail-local.h"
+
#define PARENT_TYPE (gtk_table_get_type ())
static GtkObjectClass *folder_browser_parent_class;
@@ -66,7 +68,7 @@ folder_browser_class_init (GtkObjectClass *object_class)
CamelFolder *
mail_uri_to_folder (const char *name)
{
- char *store_name, *msg;
+ char *msg;
CamelStore *store = NULL;
CamelFolder *folder = NULL;
CamelException *ex;
@@ -122,13 +124,7 @@ mail_uri_to_folder (const char *name)
folder = camel_store_get_folder (store, folder_name, FALSE, ex);
}
} else if (!strncmp (name, "file:", 5)) {
- /* Change "file:" to "mbox:". */
- store_name = g_strdup_printf ("mbox:%s", name + 5);
- store = camel_session_get_store (session, store_name, ex);
- g_free (store_name);
- if (store) {
- folder = camel_store_get_folder (store, "mbox", FALSE, ex);
- }
+ folder = local_uri_to_folder(name, ex);
} else {
msg = g_strdup_printf ("Can't open URI %s", name);
gnome_error_dialog (msg);