summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2007-02-08 16:13:41 +0000
committerTiziano Müller <dev-zero@gentoo.org>2007-02-08 16:13:41 +0000
commit37c9a1eaabffb8f5aa2471b93c443a7a7e5dd561 (patch)
tree6a6799bc941c0d2a95b6c12d1d5eb77166621e94 /net-mail/dbmail/files/dbmail-2.2.2-messages.patch
parentdev-python/pysyck: Added NEED_PYTHON and PYTHON_MODNAME. Updated src_test. (diff)
downloadsunrise-37c9a1eaabffb8f5aa2471b93c443a7a7e5dd561.tar.gz
sunrise-37c9a1eaabffb8f5aa2471b93c443a7a7e5dd561.tar.bz2
sunrise-37c9a1eaabffb8f5aa2471b93c443a7a7e5dd561.zip
net-mail/dbmail: Added patch to fix an issue with postgresql: http://www.gossamer-threads.com/lists/dbmail/users/19762?nohighlight=1#19762
svn path=/sunrise/; revision=2966
Diffstat (limited to 'net-mail/dbmail/files/dbmail-2.2.2-messages.patch')
-rw-r--r--net-mail/dbmail/files/dbmail-2.2.2-messages.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-mail/dbmail/files/dbmail-2.2.2-messages.patch b/net-mail/dbmail/files/dbmail-2.2.2-messages.patch
new file mode 100644
index 000000000..3d85fc6bd
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-2.2.2-messages.patch
@@ -0,0 +1,29 @@
+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);