aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);