diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-06-19 10:55:09 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-19 10:55:09 +0800 |
commit | 11c0b04807eda9a49359c8de9ab811c8942c2017 (patch) | |
tree | 7367891a5c3dc5cf5d020cc97602364dc1d7463d /mail/folder-browser.c | |
parent | e02ffba8e0f08677cd8cf91c5f163facddf45c2d (diff) | |
download | gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.tar gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.tar.gz gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.tar.bz2 gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.tar.lz gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.tar.xz gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.tar.zst gsoc2013-evolution-11c0b04807eda9a49359c8de9ab811c8942c2017.zip |
started to add code to load an IMAP folder.
2000-06-18 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): started to add
code to load an IMAP folder.
* component-factory.c: Started to add a create_imap_storage
method so that we can eventually have our IMAP store displayed
in the tree view.
(create_vfolder_storage): Renamed from
create_test_storage().
(owner_set_cb): Updated.
svn path=/trunk/; revision=3627
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 78397a9138..3a94659423 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -100,6 +100,16 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name) g_free(newquery); g_free(store_name); + } else if (!strncmp(name, "imap:", 5)) { + /* uhm, I'm just guessing here - this code might be wrong */ + fprintf(stderr, "\n*** name = %s ***\n\n", name); + store = camel_session_get_store (session, name, ex); + if (store) { + char *folder_name; + + folder_name = name += 5; + new_folder = camel_store_get_folder (store, folder_name, TRUE, ex); + } } else if (!strncmp(name, "file:", 5)) { /* Change "file:" to "mbox:". */ store_name = g_strdup_printf ("mbox:%s", name + 5); @@ -127,7 +137,7 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name) gnome_error_dialog (msg); camel_exception_free (ex); if (new_folder) - gtk_object_unref((GtkObject *)new_folder); + gtk_object_unref(GTK_OBJECT (new_folder)); return FALSE; } @@ -395,3 +405,5 @@ folder_browser_new (void) E_MAKE_TYPE (folder_browser, "FolderBrowser", FolderBrowser, folder_browser_class_init, folder_browser_init, PARENT_TYPE); + + |