Sieve based a day of week

Stefan G. Weichinger lists at
Fri Sep 20 13:05:36 EDT 2013

Am 20.09.2013 09:12, schrieb André Schild:
> Am 18.09.2013 20:20, schrieb Stefan G. Weichinger:
>> Am 13.03.2013 15:04, schrieb André Schild:
>>> Hello,
>>> we have a customer where they have two persons working each 4 days a week.
>>> On friday in the email of User1 there should be a auto answer for friday
>>> On Monday in the mail of User2, there should be a auto answer for monday
>>> I think this should be possible when RFC 5260 is implemented,
>>> but according to this, we don't have it yet.
>>> Is there another way I could activate/deactivate the auto answers
>>> on day-per-week automatically ?
>> I also need that ... any answer found yet?
>> AFAI googled the "date" extension would be able to do that ... but I
>> don't have that in my gentoo installation.
> Since cyrus currently does not allow this, I had to switch to a CRON 
> based solution.
> I use two files for each "state" we wish to have.
> The script file to set the new sieve rules:
> #!/bin/bash
> cd /opt/auto-sieve/user at
> sieveshell --user=user at --password=XXXXXX 
> --authname=user at localhost
> And the file with the commands to put the sieve file to the server
> put freitag.script
> activate freitag
> And finally the sieve script for friday.

Maybe I misunderstand. Why not something like:

if allof (address :all :comparator "i;ascii-casemap" :contains "From"
"stefan at", header :regex "date" "(Fri)|(Sat)|(Sun)" ) {
     vacation :days 1 :addresses "office at" :subject
"holidays!" "xy" ;


pls comment and/or correct, thanks.


More information about the Info-cyrus mailing list