<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>The first idea that pops into my mind would be to write a cron job and install it into /etc/cron.daily that would simply log into the sieveshell client and activiate/deactivate the appropriate sieve scripts. <br><br><br>Something like:<br><br>#!/bin/sh<br><br>FLOP_DATE=`date | cut -f 1 -d ' '`<br><br>echo "Switching User 1 User 2 rules on/off"<br><br>case $FLOP_DATE in<br>Fri)<br> sieveshell -user=User1 <<EOF<br><password><br>activate script_that_contains_user1_rule<br>EOF<br> sieveshell -user=User2 <<EOF<br><password><br>deactivate script_that_contains_user2_rule<br>EOF<br> ;;<br>Mon)<br> sieveshell -user=User1 <<EOF<br><password><br>deactivate script_that_contains_user1_rule<br>EOF<br> sieveshell -user=User2 <<EOF<br><password><br>activate script_that_contains_user2_rule<br>EOF<br> ;;<br>*)<br> sieveshell -user=User1 <<EOF<br><password><br>deactivate script_that_contains_user1_rule<br>EOF<br> sieveshell -user=User2 <<EOF<br><password><br>deactivate script_that_contains_user2_rule<br>EOF<br> ;;<br>esac<br><br><br>of course this is just off the top of my head, and the script has a major gaping hole of exposing the password. I don't think sieveshell supports any other auth mechanisms so you may need to make a special user and su before running the script.<br><br>However, the more important question is if they are going to be regularly off those days, why even bother? In general I discourage our users from even putting OOO messages as most users have emails on their mobile devices, and can easily direct a co-worker to address any important issues that arise in their absence. <br><br><br><br><br><div>> Date: Wed, 18 Sep 2013 20:20:07 +0200<br>> From: lists@xunil.at<br>> To: info-cyrus@lists.andrew.cmu.edu<br>> Subject: Re: Sieve based a day of week<br>> <br>> Am 13.03.2013 15:04, schrieb André Schild:<br>> > Hello,<br>> > <br>> > we have a customer where they have two persons working each 4 days a week.<br>> > <br>> > On friday in the email of User1 there should be a auto answer for friday<br>> > On Monday in the mail of User2, there should be a auto answer for monday<br>> > <br>> > I think this should be possible when RFC 5260 is implemented,<br>> > but according to this, we don't have it yet.<br>> > <br>> > Is there another way I could activate/deactivate the auto answers<br>> > on day-per-week automatically ?<br>> > <br>> <br>> I also need that ... any answer found yet?<br>> <br>> AFAI googled the "date" extension would be able to do that ... but I<br>> don't have that in my gentoo installation.<br>> <br>> Stefan<br>> <br>> <br>> <br>> ----<br>> Cyrus Home Page: http://www.cyrusimap.org/<br>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/<br>> To Unsubscribe:<br>> https://lists.andrew.cmu.edu/mailman/listinfo/info-<br><br></div>                                            </div></body>
</html>