A NOTE has been added to this issue.
======================================================================
http://www.dbmail.org/mantis/view.php?id=415
======================================================================
Reported By: metalchaos
Assigned To:
======================================================================
Project: DBMail
Issue ID: 415
Category: bug tracker
Reproducibility: always
Severity: minor
Priority: normal
Status: new
target: 2.1.8
======================================================================
Date Submitted: 25-Sep-06 12:09 CEST
Last Modified: 04-Oct-06 22:25 CEST
======================================================================
Summary: sieve filter with "message 'From:' contains:" not
working
Description:
I have this filter:
require ["fileinto"];
if allof (address :contains ["From"] "[EMAIL PROTECTED]") {
fileinto "Junk Mail";
}
But when I send mail from that accont it still delivers in INBOX.
Here is the log:
dbmail/lmtpd[7524]: Info Getting header [From] returning value ["Alexandru
Anghel" <[EMAIL PROTECTED]>]
dbmail/lmtpd[7524]: Info No actions taken; message must be kept.
dbmail/lmtpd[7524]: Info sort.c,sort_deliver_to_mailbox: useridnr [3]
mailbox [INBOX]
If I try the same thing with Subject it works I mean if I have this
script:
require ["fileinto"];
if allof (header :contains "subject" "test") {
fileinto "Junk Mail";
}
and I send a mail with subject "test 12" the mail is delivered into Junk
Mail.
======================================================================
----------------------------------------------------------------------
aaron - 02-Oct-06 02:21
----------------------------------------------------------------------
I pushed through a few changes to the Sieve support to get some more
debugging information. Please try this again with latest DBMail SVN, and
with SIEVE_DEBUG=yes and TRACE_SYSLOG=5 in dbmail.conf.
----------------------------------------------------------------------
aaron - 04-Oct-06 22:25
----------------------------------------------------------------------
Got a trace of this. Something is indeed screwy.
Oct 4 13:26:28 [dbmail/smtp] Info module sort file sort.c func
sort_and_deliver line 84: Calling for a Sieve sort
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_startup line 560: Sieve vacation enabled.
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_startup line 580: Sieve debugging enabled.
Oct 4 13:26:28 [dbmail/smtp] Debug dbmysql.c,db_query: query [SELECT name
from dbmail_sievescripts where owner_idnr = 30 and active = 1]
Oct 4 13:26:28 [dbmail/smtp] Info module sieve file sortsieve.c func
sort_getscript line 323: Getting default script named [from]
Oct 4 13:26:28 [dbmail/smtp] Debug dbmysql.c,db_query: query [SELECT
script FROM dbmail_sievescripts WHERE owner_idnr = '30' AND name =
'from']
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_interface] file [sc
ript.c] function [libsieve_eval] message [starting into libsieve_eval]_
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_interface] file [sc
ript.c] function [libsieve_eval] message [the commandlist type is [260]]_
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_interface] file [sc
ript.c] function [libsieve_eval] message [top of the eval loop]_
Oct 4 13:26:28 [dbmail/smtp] Info module sieve file sortsieve.c func
sort_getheader line 359: Getting header [From] returning value [Me
You <[EMAIL PROTECTED]>]
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_parser] file [addr.
y] function [libsieve_addrappend] message [Prepending a new addr struct]_
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_parser] file [addr.
y] function [libsieve_addrparse] message [word: ATOM: _<E0>__]_
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_parser] file [addr.
y] function [libsieve_addrappend] message [Prepending a new addr struct]_
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_parser] file [addr.
y] function [libsieve_addrstructcopy] message [I'd like to copy this
pointer: (nil): (NULL)]_
- Last output repeated 3 times -
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_interface] file [sc
ript.c] function [libsieve_eval] message [starting into libsieve_eval]_
Oct 4 13:26:28 [dbmail/smtp] Debug module sieve file sortsieve.c func
sort_debugtrace line 464: libSieve: module [sv_interface] file [sc
ript.c] function [libsieve_eval] message [the commandlist is null]_
Oct 4 13:26:28 [dbmail/smtp] Info module sieve file sortsieve.c func
sort_process line 754: No actions taken; message must be kept.
Issue History
Date Modified Username Field Change
======================================================================
25-Sep-06 12:09 metalchaos New Issue
25-Sep-06 12:54 jasb Issue Monitored: jasb
01-Oct-06 21:27 paul target => 2.1.8
02-Oct-06 02:21 aaron Note Added: 0001434
04-Oct-06 22:25 aaron Note Added: 0001458
======================================================================