On Sat, 2006-01-21 at 00:59 +0100, dirk völlger wrote: > Hello, > > after installing sieve and using a small filter-script i recognized, > that sieve for some reason is not filtering the mail and i do not know > why. > > To make sieve run, i did everything as described on: > > http://www.debian-administration.org/articles/219 > > The service is running, as a netstat proofs: > > netstat -lt|grep sieve > tcp 0 0 mydomain.tld:sieve *:* LISTEN > > Here is my skript: > > > require "fileinto"; > if header :contains "to" "[EMAIL PROTECTED]" > { > fileinto "INBOX.bt-message";stop; > } > > I used sieveshell to activate it. When sending a mail to the adress > given in the skript my maillog just says: > > cyrus/lmtpd[9150]: duplicate_mark: > <[EMAIL PROTECTED]> user.dirkounet > > so i suppose that sieve is not used cause there is a little "+sieve" > missing in that line. > > > I also tried several Syntax in the script, instead of using "to" I also > tried it with "To" and "TO" but there is no difference. I have no clue > where to continue looking for the error. > > Any help appreciated ---- this works for me...
require ["imapflags", "fileinto", "reject"]; if address :all :comparator "i;ascii-casemap" :contains "To" "[EMAIL PROTECTED]" { fileinto "INBOX.samba-org"; stop; } watch the email line wrap on the third line. Craig ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html