Does the keyword/action discard work by default or is there something I have 
to do in the configuration to get to work... maybe I missed something on 
http://wiki.dovecot.org/LDA/Sieve
I have the following rule:
if anyof (
     header :contains ["Subject"] ["Test Discard"]
) {
    discard;
    stop;
}
but it delivers to INBOX with or w/o the "stop;". If I change the rule
to
if anyof (
     header :contains ["Subject"] ["Test Discard"]
) {
    fileinto "spam";
    stop;
}
the message will deliver into my spam folder which makes me think I am doing 
something wrong with "discard".
Using 1.0.2 sieve plug-in.
Thanks.
On Mon, 2007-07-23 at 00:52 -0400, Jim Horner wrote:> > Does the keyword/action discard work by default or is there something I have > to do in the configuration to get to work...Sorry, looks like I broke this for Dovecot v1.0.2. Could you verify that this patch fixes it: http://hg.dovecot.org/dovecot-1.0/rev/be2c4dacae2c I'll release v1.0.3 then. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070723/cae22903/attachment-0002.bin>
On Monday 23 July 2007 01:13:37 Timo Sirainen wrote:> On Mon, 2007-07-23 at 00:52 -0400, Jim Horner wrote: > > Does the keyword/action discard work by default or is there something I > > have to do in the configuration to get to work... > > Sorry, looks like I broke this for Dovecot v1.0.2. Could you verify that > this patch fixes it: http://hg.dovecot.org/dovecot-1.0/rev/be2c4dacae2c > > I'll release v1.0.3 then.appears to work... Jul 23 13:12:29 giganta deliver(jhorner at arinbe.com): msgid=<200707231312.27879.jhorner at arinbe.com>: discarded
Timo,>> Does the keyword/action discard work by default or is there something I have >> to do in the configuration to get to work...TS> Sorry, looks like I broke this for Dovecot v1.0.2. Reject doesn't work for 1.0.2 too. TS> Could you verify that TS> this patch fixes it: http://hg.dovecot.org/dovecot-1.0/rev/be2c4dacae2c TS> I'll release v1.0.3 then. Yes it works, thank you. p.s. I've just spent one hour trying to find out why my sieve script works so... hmm strange. Now I've got the answer. ;) -- Eugene Gladchenko EVG15-RIPE
Hi Timo, Timo Sirainen wrote on 23-7-2007 7:13:> On Mon, 2007-07-23 at 00:52 -0400, Jim Horner wrote: > >> Does the keyword/action discard work by default or is there something I have >> to do in the configuration to get to work... >> > > Sorry, looks like I broke this for Dovecot v1.0.2. Could you verify that > this patch fixes it: http://hg.dovecot.org/dovecot-1.0/rev/be2c4dacae2c > > I'll release v1.0.3 then. >Any plans for releasing sieve 1.0.3? I'm working on upgrading the FreeBSD port, but dont want to be caught in upgrading to an instantly old version :-) Greets, Nils -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 187 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20070801/385d3a3a/attachment-0002.bin>
Jim,
July 23, 2007, Jim Horner wrote:
JH> Does the keyword/action discard work by default or is there something I
have
JH> to do in the configuration to get to work... maybe I missed something on
JH> http://wiki.dovecot.org/LDA/Sieve
JH> I have the following rule:
JH> if anyof (
JH>      header :contains ["Subject"] ["Test Discard"]
JH> ) {
JH>     discard;
JH>     stop;
JH> }
JH> but it delivers to INBOX with or w/o the "stop;".
JH> Using 1.0.2 sieve plug-in.
I remember it was fixed in 1.0.3 but I've got dovecot-sieve-1.1.5_1 and
dovecot-1.1.3 (FreeBSD) right now and it seems to me I've encountered
the similar problem.
My .dovecot.sieve is like the following:
# Reject all mail to webmaster at example.net
if header
   :matches
     ["To", "Cc", "Bcc", "Reply-To",
"In-Reply-To"]
     ["webmaster at example.net"] {
   discard;
   stop;
}
I don't need e-mail spammers send to my webmaster at example.net and the
above rules really discard the messages that I send to webmaster at example.net
myself, see:
deliver(eugene): Sep 19 02:17:05 Info: cmusieve: Using sieve path:
/home/eugene/.dovecot.sieve
deliver(eugene): Sep 19 02:17:05 Info: cmusieve: Executing script
/home/eugene/.dovecot.sievec
deliver(eugene): Sep 19 02:17:05 Info: msgid=<367302207.20080919004558 at
example.net>: discarded
But spammers bypass the sieve with ease. I can see messages having the
line "To: webmaster at example.net" in the header and still getting
into my
inbox though:
deliver(eugene): Sep 19 01:45:19 Info: cmusieve: Using sieve path:
/home/eugene/.dovecot.sieve
deliver(eugene): Sep 19 01:45:19 Info: cmusieve: Executing script
/home/eugene/.dovecot.sievec
deliver(eugene): Sep 19 01:45:19 Info:
msgid=<01c919ad$ec09ed80$6c589fbe@|andreas>: saved mail to INBOX
Am I doing something wrong?
-- 
Eugene Gladchenko
EVG15-RIPE