aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-folder-view.c9
2 files changed, 12 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 12aed54834..76c65d7ec6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-20 Srinivasa Ragavan <sragavan@novell.com>
+
+ * em-folder-view.c: (emfv_setup_view_instance): Added code to set the
+ mail view column for sent folder.
+
2006-03-12 Frank Arnold <farnold@cvs.gnome.org>
* default/de/Inbox: Updated German translation of default inbox.
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);