On 03/03/2020 14:11, Evgeniy Berdnikov via Exim-users wrote:
> On Tue, Mar 03, 2020 at 02:36:54PM +0100, Sławomir Dworaczek via Exim-users wrote:
>> i use wxim with mysql and rule for vacation
>> uservacation:
>> driver = accept
>> domains = ${lookup mysql{SELECT domains.fqdn AS domain FROM domains,mailboxes,vacations WHERE \
>> vacations.active=1 AND \
> [...]
>> domains.fqdn='${quote_mysql:$domain}'}}
>>
>> it's possible add start date and end date autoreply ?
>> eg. if current date > startdate and current date < stopdate
>
> Use for comparison variables $tod_epoch and/or $tod_zulu,
> and similarly formatted fields in mysql database.
Or just use CURDATE().
--
Cheers,
Jeremy