Sieve based a day of week
André Schild
andre at schild.ws
Fri Sep 20 03:12:05 EDT 2013
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 domain.ch
sieveshell --user=user at domain.ch --password=XXXXXX
--authname=user at domain.ch --execfile=activate.ss 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.
With best regards
André Schild
More information about the Info-cyrus
mailing list