The Hermit Hacker wrote:
> 
> Is there anything obviously with the following sieve script?  Its not
> filtering, its all still being dumped to the mailbox :(

The filter is not being executed due to a parse error on the require
line.  The discard action is MANDATORY in sieve and therefore doesn't
need/want a require.

One of the best ways to check this stuff is to run your script through
the "test" program in the sieve directory.  Use the -v option to verify
a script.


> ---------
> require "discard";
> 
> if header :contains "Subject" "Delivery failure" {
>         discard;
> } elsif header :contains "Subject" "Postmaster notify: see transcript for details" {
>         discard;
> } elsif header :contains "Subject" "Automatic Reply:" {
>         discard;
> } elsif header :contains "Subject" "Returned mail:" {
>         discard;
> } elsif header :contains "Subject" "Mail System Error" {
>         discard;
> }
> ----------
> 
> Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
> Systems Administrator @ hub.org
> primary: [EMAIL PROTECTED]           secondary: scrappy@{freebsd|postgresql}.org

-- 
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

Reply via email to