Re: Sieve based a day of week

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

 



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@xxxxxxxxx
sieveshell --user=user@xxxxxxxxx --password=XXXXXX 
--authname=user@xxxxxxxxx --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

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus





[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