The following issue has been CLOSED 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=415 
====================================================================== 
Reported By:                metalchaos
Assigned To:                aaron
====================================================================== 
Project:                    DBMail
Issue ID:                   415
Category:                   bug tracker
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
target:                     2.1.8 
Resolution:                 reopened
Fixed in Version:           
====================================================================== 
Date Submitted:             25-Sep-06 12:09 CEST
Last Modified:              09-Oct-06 18:37 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. 

---------------------------------------------------------------------- 
 jasb - 04-Oct-06 22:26  
---------------------------------------------------------------------- 
If you need some debug information from me just say Aaron. 

---------------------------------------------------------------------- 
 jasb - 04-Oct-06 22:33  
---------------------------------------------------------------------- 
Ops, forget my note, i thought that i was putting a note to my report,
sorry 

---------------------------------------------------------------------- 
 aaron - 05-Oct-06 06:16  
---------------------------------------------------------------------- 
It's a libSieve bug with the "address" test. The "header" test works.
I'll post a new version of libSieve with an "address" fix later this week. 

---------------------------------------------------------------------- 
 metalchaos - 09-Oct-06 10:16  
---------------------------------------------------------------------- 
And could you tell me please where is the updated version of libsieve. On
sourceforge there is only 2.1.13, a few months old. 

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                          
04-Oct-06 22:26 jasb           Note Added: 0001459                          
04-Oct-06 22:33 jasb           Note Added: 0001460                          
05-Oct-06 06:16 aaron          Status                   new => resolved     
05-Oct-06 06:16 aaron          Resolution               open => no change
required
05-Oct-06 06:16 aaron          Assigned To               => aaron           
05-Oct-06 06:16 aaron          Note Added: 0001461                          
09-Oct-06 10:16 metalchaos     Status                   resolved => feedback
09-Oct-06 10:16 metalchaos     Resolution               no change required =>
reopened
09-Oct-06 10:16 metalchaos     Note Added: 0001487                          
09-Oct-06 18:37 aaron          Status                   feedback => closed  
======================================================================

Reply via email to