aboutsummaryrefslogtreecommitdiffstats
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
parentbd3e2e1b65ffbda11b4bf8a9df12a667f07ff190 (diff)
downloadgsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar
gsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar.gz
gsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar.bz2
gsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar.lz
gsoc2013-evolution-a1d1e450a1ec2f8c2fd921b18e695031cf061887.tar.xz
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
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-folder-summary.c10
-rw-r--r--camel/camel-mime-message.c2
3 files changed, 10 insertions, 8 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f73235517a..4257fe5eed 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,11 @@
2000-07-03 Dan Winship <danw@helixcode.com>
+ * 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.
+
* providers/pop3/camel-pop3-store.c (camel_pop3_command): Fix a
bug in error-setting code.
(pop3_connect): Don't re-prompt for password in the KPOP case.
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;
}
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 0e78ca6912..1a31fc1ea1 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -80,7 +80,7 @@ camel_mime_message_class_init (CamelMimeMessageClass *camel_mime_message_class)
parent_class = gtk_type_class (camel_mime_part_get_type ());
- header_name_table = g_hash_table_new (g_str_hash, g_str_equal);
+ header_name_table = g_hash_table_new (g_strcase_hash, g_strcase_equal);
for (i=0;header_names[i];i++)
g_hash_table_insert (header_name_table, header_names[i], (gpointer)i+1);