aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-06 01:59:48 +0800
committerDan Winship <danw@src.gnome.org>2000-07-06 01:59:48 +0800
commita3c2c90d0a7ad7dee4e78830aae7b4419ea71438 (patch)
tree16e86e390f07ca635eea196ac712a84d2b4d0701 /camel/camel-folder-summary.c
parent54376bf2c76cacef3e677a3bccfaf063bdde8c5d (diff)
downloadgsoc2013-evolution-a3c2c90d0a7ad7dee4e78830aae7b4419ea71438.tar.gz
gsoc2013-evolution-a3c2c90d0a7ad7dee4e78830aae7b4419ea71438.tar.zst
gsoc2013-evolution-a3c2c90d0a7ad7dee4e78830aae7b4419ea71438.zip
Add "Cc" to summary and bump summary version number.
* camel-folder-summary.c: Add "Cc" to summary and bump summary version number. * camel-folder-search.c (search_header_contains): make "Cc" a searchable header. svn path=/trunk/; revision=3888
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r--camel/camel-folder-summary.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 6ccf2bc7d5..2bb7ca2a74 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -48,7 +48,7 @@
extern int strdup_count, malloc_count, free_count;
#endif
-#define CAMEL_FOLDER_SUMMARY_VERSION (5)
+#define CAMEL_FOLDER_SUMMARY_VERSION (6)
struct _CamelFolderSummaryPrivate {
GHashTable *filter_charset; /* CamelMimeFilterCharset's indexed by source charset */
@@ -967,6 +967,7 @@ message_info_new(CamelFolderSummary *s, struct _header_raw *h)
mi->subject = summary_format_string(h, "subject");
mi->from = summary_format_address(h, "from");
mi->to = summary_format_address(h, "to");
+ mi->cc = summary_format_address(h, "cc");
mi->user_flags = NULL;
mi->date_sent = header_decode_date(header_raw_find(&h, "date", NULL), NULL);
received = header_raw_find(&h, "received", NULL);
@@ -1005,6 +1006,7 @@ message_info_load(CamelFolderSummary *s, FILE *in)
camel_folder_summary_decode_string(in, &mi->subject);
camel_folder_summary_decode_string(in, &mi->from);
camel_folder_summary_decode_string(in, &mi->to);
+ camel_folder_summary_decode_string(in, &mi->cc);
mi->content = NULL;
camel_folder_summary_decode_string(in, &mi->message_id);
@@ -1044,6 +1046,7 @@ message_info_save(CamelFolderSummary *s, FILE *out, CamelMessageInfo *mi)
camel_folder_summary_encode_string(out, mi->subject);
camel_folder_summary_encode_string(out, mi->from);
camel_folder_summary_encode_string(out, mi->to);
+ camel_folder_summary_encode_string(out, mi->cc);
camel_folder_summary_encode_string(out, mi->message_id);
@@ -1072,6 +1075,7 @@ message_info_free(CamelFolderSummary *s, CamelMessageInfo *mi)
g_free(mi->subject);
g_free(mi->from);
g_free(mi->to);
+ g_free(mi->cc);
g_free(mi->message_id);
header_references_list_clear(&mi->references);
camel_flag_list_free(&mi->user_flags);
@@ -1407,6 +1411,7 @@ message_info_dump(CamelMessageInfo *mi)
printf("Subject: %s\n", mi->subject);
printf("To: %s\n", mi->to);
+ printf("Cc: %s\n", mi->cc);
printf("From: %s\n", mi->from);
printf("UID: %s\n", mi->uid);
printf("Flags: %04x\n", mi->flags & 0xffff);