Ok, got it.
Could you plz test the patch attached?
Leonel Nunez wrote:
>> level 5 logs plz.
>>
>
> Here is on the attached file
>
> This is the same for many other errors for the headername CC cc In-reply-to
>
> Thanks a lot
>
> Leonel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> DBmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
diff --git a/dbmail-message.c b/dbmail-message.c
index 21d5bcc..2feb35a 100644
--- a/dbmail-message.c
+++ b/dbmail-message.c
@@ -885,10 +885,14 @@ static int _header_get_id(const struct D
u64_t tmp;
gpointer cacheid;
gchar *safe_header;
+ gchar *tmpheader;
- if (! (safe_header = dm_strnesc(header,CACHE_WIDTH_NAME)))
+ if (! (tmpheader = dm_strnesc(header,CACHE_WIDTH_NAME)))
return -1;
+ safe_header = g_ascii_strdown(tmpheader,-1);
+ g_free(tmpheader);
+
cacheid = g_hash_table_lookup(self->header_dict, (gconstpointer)safe_header);
if (cacheid) {
*id = GPOINTER_TO_UINT(cacheid);
@@ -897,7 +901,7 @@ static int _header_get_id(const struct D
}
GString *q = g_string_new("");
- g_string_printf(q, "SELECT id FROM %sheadername WHERE headername='%s'", DBPFX, safe_header);
+ g_string_printf(q, "SELECT id FROM %sheadername WHERE lower(headername)='%s'", DBPFX, safe_header);
if (db_query(q->str) == -1) {
g_string_free(q,TRUE);
g_free(safe_header);
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail