aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-03-20 17:24:06 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-03-20 17:24:06 +0800
commit2361659ec0dc9c76a6b65bbd197b50f4a51f905f (patch)
tree8adede8ac47831913094b3a0e014693f0acf52ce /mail/em-folder-view.c
parent43f8ec830ed5b415baeb4d70d95c69e9c1f8e20b (diff)
downloadgsoc2013-evolution-2361659ec0dc9c76a6b65bbd197b50f4a51f905f.tar.gz
gsoc2013-evolution-2361659ec0dc9c76a6b65bbd197b50f4a51f905f.tar.zst
gsoc2013-evolution-2361659ec0dc9c76a6b65bbd197b50f4a51f905f.zip
Added code to set the mail view column for sent folder.
svn path=/trunk/; revision=31724
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c9
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);