Hello.
I compiled dbmail-svn rev 1979.

2 problems:

The 1st:

when I activate sieve-scripts, dbmail-lmtpd can't react to this script:
require "fileinto";
if header :is "X-Spam-Flag" "YES" {
fileinto "SPAM";}
else {
fileinto "INBOX";}

But, when I change:
        { SIEVE2_MESSAGE_GETHEADER,     sort_getheader    },
to
        { SIEVE2_MESSAGE_GETHEADER,     NULL    },
        { SIEVE2_MESSAGE_GETALLHEADERS, sort_getheaders  },

where:
int sort_getheaders(sieve2_context_t *s, void *my)
{
       struct sort_context *m = (struct sort_context *)my;
       char *allh;
       allh=dbmail_message_hdrs_to_string(m->message);
       sieve2_setvalue_string(s, "allheaders", allh);
       return SIEVE2_OK;
}


all ok.
So, dbmail can't parse header by-line, but can all header.

The 2nd problem:

I got this:

(process:4605): GLib-CRITICAL **: g_string_truncate: assertion `string != 
NULL' failed
(process:4605): GLib-CRITICAL **: g_string_append_len: assertion `string != 
NULL' failed
*** glibc detected *** corrupted double-linked list: 0x080629b0 ***

while running this revision.

How can I help? and what I do wrong?


-- 
Oleg Lapshin

Reply via email to