diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-06-23 10:11:38 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-06-23 10:11:38 +0800 |
commit | d12be02179f502780ab5d8219dceac8c7b2d36e9 (patch) | |
tree | 1a2f0d9bb33e83bfc1b3f533ab92b24e13b36b8f /mail/folder-browser.c | |
parent | 61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0 (diff) | |
download | gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.tar gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.tar.gz gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.tar.bz2 gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.tar.lz gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.tar.xz gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.tar.zst gsoc2013-evolution-d12be02179f502780ab5d8219dceac8c7b2d36e9.zip |
add handling for loading "news:" folders.
2000-06-22 Chris Toshok <toshok@helixcode.com>
* folder-browser.c (folder_browser_load_folder): add handling for
loading "news:" folders.
* component-factory.c (create_news_storage): add a root for news
source.
(owner_set_cb): call create_news_storage.
svn path=/trunk/; revision=3703
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index b880a867b6..0220252e59 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -131,6 +131,15 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name) g_free (folder_name); } } + } else if (!strncmp(name, "news:", 5)) { + store = camel_session_get_store (session, name, ex); + if (store) { + const char *folder_name; + + folder_name = name + 5; + + new_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); |