Re: Hints for Sieve script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anders Norrbring wrote:

> Basically, I want a vacation rule to be in effect first of all, that's 
> no problem to make.
> Then, I want the incoming mail to be permanently deleted after the 
> vacation note is sent.
> 
> It's the last step I need a hint for..

I happen to have a script in place for one user which does exactly that. I 
don't know if this is the "perfect" way, but it works:


# Vacation
if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", 
"list-owner", "list-post", "list-archive", "list-id"], not header 
:comparator "i;ascii-casemap" :is "Precedence" "list,bulk" ) {
     vacation :days 1 :addresses [ "user.name@xxxxxxxxxxx" ] :subject 
"YOUR VACATION MESSAGE SUBJECT" "YOUR VACATION MESSAGE TEXT";
}

# Discard
if size :over 1 {
     discard;
}

HTH
--
Toomas Aas
... Work is for people who don't know how to fish.
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux