sieve script not running?

Ken Murchison ken at oceana.com
Mon Jul 7 15:56:17 EDT 2003


Test your script/message combo by running the them through the 
sieve/test.c program in the distro.  Once it works there, then you can 
work on lmtpd/timsieved problems.


Hank Beatty wrote:

> I'm working with the 2.2 version and have this sieve script:
> 
> require ["fileinto"];
> if header :contains "X-Spam-Flag" "YES" {
> fileinto "Junk Mail";
> }
> 
> The "Junk Mail" folder does exist:
> 
> user/<username>/INBOX.Drafts@<domain>.net (\HasNoChildren)
> user/<username>/INBOX.Sent@<domain>.net (\HasNoChildren)
> user/<username>/INBOX.Trash@<domain>.net (\HasNoChildren)
> user/<username>/mail/Drafts@<domain>.net (\HasNoChildren)
> user/<username>/mail/Family@<domain>.net (\HasNoChildren)
> user/<username>/mail/Junk Mail@<domain>.net (\HasNoChildren)
> user/<username>/mail/Sent@<domain>.net (\HasNoChildren)
> user/<username>/mail/Trash@<domain>.net (\HasNoChildren)
> user/<username>@<domain>.net (\HasChildren)
> 
> 
> I can use sieveshell to upload and activate the script.
> 
> 
>>list
> 
> phpscript
> test  <- active script
> 
> 
> imapd.conf
> 
> ##########################################
> # Global info's
> ##########################################
> configdirectory: /var/imap
> partition-default: /var/spool/imap
> unixhierarchysep: yes
> altnamespace: yes
> imapidresponse: no
> ##########################################
> # Autentification & User rights
> ##########################################
> admins: cyrus murderbackend murderproxy
> sasl_pwcheck_method: saslauthd
> allowanonymouslogin: no
> ##########################################
> # Quota & Message size limit
> ##########################################
> quotawarn: 90
> autocreatequota: 10240
> lmtp_overquota_perm_failure: yes
> defaultacl: anyone lrs
> ##########################################
> # Virtual Domain Support
> ##########################################
> virtdomains: yes
> singleinstancestore: yes
> duplicatesuppression: yes
> foolstupidclients: yes
> hashimapspool: yes
> sievedir: /usr/sieve
> sieveusehomedir: no
> 
> The sieve script was created in:
> 
> ls /usr/sieve/domain/R/<domain>.net/W/<username>/
> default.bc  phpscript.bc  phpscript.script  test.bc  test.script
> 
> The script isn't moving any of the mail that has the spam flag set. Does
> anyone have any ideas?
> 

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp





More information about the Info-cyrus mailing list