aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-01-15 08:42:58 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-01-15 08:42:58 +0000
commit4463ed43c3de45b41291c59770e1380651423471 (patch)
treef93d32ef1186b1df203e9fc7b1a434ea9a585cb2 /src/summaryview.c
parent18dada4c482c17bec614b8e0dca44cd2408e9922 (diff)
save color labels on IMAP server using custom keywords (partially compatible with Thunderbird).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2433 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index 966bcf42..b8514066 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -4923,6 +4923,14 @@ void summary_set_colorlabel(SummaryView *summaryview, guint labelcolor,
summary_set_row(summaryview, &iter, msginfo);
}
+ if (FOLDER_TYPE(summaryview->folder_item->folder) == F_IMAP) {
+ GSList *msglist;
+
+ msglist = summary_get_selected_msg_list(summaryview);
+ imap_msg_list_set_colorlabel_flags(msglist, labelcolor);
+ g_slist_free(msglist);
+ }
+
if (rows)
summaryview->folder_item->mark_dirty = TRUE;