diff options
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index e369bba550..af5f66a75b 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -500,6 +500,7 @@ emfv_setup_view_instance(EMFolderView *emfv) gboolean outgoing; char *id; static GalViewCollection *collection = NULL; + CamelFolderInfo *fi = NULL; g_assert(emfv->folder); g_assert(emfv->folder_uri); @@ -558,8 +559,12 @@ emfv_setup_view_instance(EMFolderView *emfv) id = mail_config_folder_to_safe_url (emfv->folder); p->view_instance = gal_view_instance_new (collection, id); g_free (id); - - if (outgoing) + + fi = camel_store_get_folder_info (emfv->folder->parent_store, + emfv->folder->full_name, + CAMEL_STORE_FOLDER_INFO_FAST, + NULL); + if (outgoing || (fi && (fi->flags & CAMEL_FOLDER_TYPE_SENT))) gal_view_instance_set_default_view(p->view_instance, "As_Sent_Folder"); gal_view_instance_load(p->view_instance); |