diff options
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 11 |
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; |