aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2003-11-13 05:13:05 +0800
committerRadek Doulik <rodo@src.gnome.org>2003-11-13 05:13:05 +0800
commit8e1251fa17b522d0539a8fcfb7463ba8cef1b31a (patch)
tree9be2f3a8a184446361a8c72879947f7a6e7d8d75 /mail/mail-component.c
parent8187001a14295b4b64cc3e973fb1ab1e551133f2 (diff)
downloadgsoc2013-evolution-8e1251fa17b522d0539a8fcfb7463ba8cef1b31a.tar.gz
gsoc2013-evolution-8e1251fa17b522d0539a8fcfb7463ba8cef1b31a.tar.zst
gsoc2013-evolution-8e1251fa17b522d0539a8fcfb7463ba8cef1b31a.zip
merged spam filtering branch
svn path=/trunk/; revision=23302
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index f22cb656b3..ea20dae624 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -269,6 +269,12 @@ type_is_vtrash (const char *type)
return !strcmp (type, "vtrash");
}
+static inline gboolean
+type_is_vjunk (const char *type)
+{
+ return !strcmp (type, "vjunk");
+}
+
static void
storage_go_online (gpointer key, gpointer value, gpointer data)
{
@@ -410,6 +416,11 @@ create_view_callback (EStorageBrowser *browser,
control = folder_browser_factory_new_control ("vtrash:file:/");
else
control = folder_browser_factory_new_control (physical_uri);
+ } else if (type_is_vjunk (folder_type)) {
+ if (!strncasecmp (physical_uri, "file:", 5))
+ control = folder_browser_factory_new_control ("vjunk:file:/");
+ else
+ control = folder_browser_factory_new_control (physical_uri);
} else
return NULL;