aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-03 23:13:07 +0800
committerDan Winship <danw@src.gnome.org>2000-07-03 23:13:07 +0800
commita1d1e450a1ec2f8c2fd921b18e695031cf061887 (patch)
tree1a7bd7186748b7e7272df1e8f9f3ce2f417f4b4d /camel/camel-folder-summary.c
parentbd3e2e1b65ffbda11b4bf8a9df12a667f07ff190 (diff)
downloadgsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar.gz
gsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar.zst
gsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.zip
Parse In-Reply-To with header_references_decode, not header_msgid_decode.
* camel-folder-summary.c (message_info_new): Parse In-Reply-To with header_references_decode, not header_msgid_decode. * camel-mime-message.c (camel_mime_message_class_init): message headers are case-insensitive. svn path=/trunk/; revision=3870
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r--camel/camel-folder-summary.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index dd99921924..d10a02a0d7 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -961,7 +961,7 @@ static CamelMessageInfo *
message_info_new(CamelFolderSummary *s, struct _header_raw *h)
{
CamelMessageInfo *mi;
- char *received;
+ const char *received;
mi = g_malloc0(s->message_info_size);
@@ -981,12 +981,8 @@ message_info_new(CamelFolderSummary *s, struct _header_raw *h)
/* if we have a references, use that, otherwise, see if we have an in-reply-to
header, with parsable content, otherwise *shrug* */
mi->references = header_references_decode(header_raw_find(&h, "references", NULL));
- if (mi->references == NULL) {
- char *id;
- id = header_msgid_decode(header_raw_find(&h, "in-reply-to", NULL));
- if (id)
- header_references_list_append_asis(&mi->references, id);
- }
+ if (mi->references == NULL)
+ mi->references = header_references_decode(header_raw_find(&h, "in-reply-to", NULL));
return mi;
}