Hello
I try to insert this sieve-script:

require "fileinto";
if header :is "X-Spam-Flag" "YES" {
fileinto "SPAM";}
else {
fileinto "INBOX";}

with command:

dbmail-sievecmd -u loe -i spam1 < sieve_spam1

and get:

*** dbmail-sievecmd ***
Opening connection to database...
Opening connection to authentication...
Ok. Connected!
Segmentation fault

This happens on this line in sievecmd.c:
res = sort_validate(user_idnr, "@!temp-script!@", &errmsg);

Last lines from strace:

fcntl64(6, F_SETFL, O_RDWR)             = 0
write(6, "Z\0\0\0\3SELECT script from dbmail_s"..., 94) = 94
read(6, "\271\0\0\1", 4)                = 4
read(6, "\377(\4#42000You have an error in yo"..., 185) = 185
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


What did I do wrong?


-- 
Oleg Lapshin

Reply via email to