On 03-12-16 17:43, Reindl Harald wrote:
> 
> 
> Am 03.12.2016 um 17:37 schrieb Paul J Stevens:
>> Thanks for the reference. You might try attached patch where I fix the
>> generic set_header
> 
> does this patch apply to 3.1.17? since it's so silent here e hestitate
> to play around with dbmail-3.2 and currently no time anyways since
> working day and night on refactoring 250000 lines of code in a 13 years
> old base......
> 
> dbmail-3.1.17-3.fc24.20161014.rh.2874f497fb429ed139e94342ca1c84325b20b3f1.x86_64

I'm attaching the same patch for 3.1

> BTW: it would also be nice when dbmail could stop reformat existing
> headers - spam reports are horrible to read - they are supposed to have
> * starting in a new line with a space before

I dunno. This is deep gmime stuff.



-- 
________________________________________________________________
Paul J Stevens       pjstevns @ gmail, twitter, github, linkedin
From 30e88dbef8de97c839b1816d309e0e90526be471 Mon Sep 17 00:00:00 2001
From: Paul J Stevens <p.stev...@labdigital.nl>
Date: Sun, 4 Dec 2016 10:43:41 +0100
Subject: [PATCH] [#10083] prepend headers during delivery

---
 src/dbmail-message.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dbmail-message.c b/src/dbmail-message.c
index 07ba50c..d346727 100644
--- a/src/dbmail-message.c
+++ b/src/dbmail-message.c
@@ -860,7 +860,7 @@ const char * dbmail_message_get_envelope_recipient(const DbmailMessage *self)
 
 void dbmail_message_set_header(DbmailMessage *self, const char *header, const char *value)
 {
-	g_mime_object_set_header(GMIME_OBJECT(self->content), header, value);
+	g_mime_object_prepend_header(GMIME_OBJECT(self->content), header, value);
 }
 
 const gchar * dbmail_message_get_header(const DbmailMessage *self, const char *header)
-- 
2.7.4

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://lists.nfg.nl/mailman/listinfo/dbmail

Reply via email to