please try the attached patch to see if this fixes it.

-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
>From b7ece7e51231f4aae75dd4e247345f93964a63c8 Mon Sep 17 00:00:00 2001
From: Paul J Stevens <[EMAIL PROTECTED]>
Date: Tue, 4 Mar 2008 13:41:55 +0100
Subject: make internal grelation table of headers case insensitive

---
 dbmail-message.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dbmail-message.c b/dbmail-message.c
index c28f8c0..1f2e823 100644
--- a/dbmail-message.c
+++ b/dbmail-message.c
@@ -441,13 +441,18 @@ static int _set_content_from_stream(struct DbmailMessage *self, GMimeStream *str
 	return res;
 }
 
+static gboolean g_str_case_equal(gconstpointer a, gconstpointer b)
+{
+	return MATCH((const char *)a,(const char *)b) == 0;
+}
+
 static void _map_headers(struct DbmailMessage *self)
 {
 	GMimeObject *part;
 	assert(self->content);
 	self->headers = g_relation_new(2);
-	g_relation_index(self->headers, 0, (GHashFunc)g_str_hash, (GEqualFunc)g_str_equal);
-	g_relation_index(self->headers, 1, (GHashFunc)g_str_hash, (GEqualFunc)g_str_equal);
+	g_relation_index(self->headers, 0, (GHashFunc)g_str_hash, (GEqualFunc)g_str_case_equal);
+	g_relation_index(self->headers, 1, (GHashFunc)g_str_hash, (GEqualFunc)g_str_case_equal);
 
 	 // gmime doesn't consider the content-type header to be a message-header so extract
 	 // and register it separately
-- 
1.5.2.5

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to