From d12be02179f502780ab5d8219dceac8c7b2d36e9 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 23 Jun 2000 02:11:38 +0000 Subject: add handling for loading "news:" folders. 2000-06-22 Chris Toshok * 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 --- mail/folder-browser.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mail/folder-browser.c') 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); -- cgit v1.2.3