Re: [exim] way to delay by time of day?

Góra strony
Delete this message
Reply to this message
Autor: OpenMacNews
Data:  
Dla: Christian Recktenwald
CC: exim-users
Temat: Re: [exim] way to delay by time of day?
hi christian,

>> i'd thought of this, but failed to find conditions for date/time checks in
>> exim ...
>>
>> did i miss them?
>
> specific time checks are not available IIRC.
>
> You could extract date/time details from $tod_full using extract
> or sg:
>
>     ${extract{1}{,}{$tod_full}}

>
> should give you the day of week used in an condition.
> Please see http://www.exim.org/exim-html-4.50/doc/html/spec_11.html
> for details.


i'd just found this myself a little while ago. thx for confirming!

i also found the $tod_* vars, and am surprised that there are *not* simple var
equivalents for year/month/day/date/hour/min/sec. i'd have thought those were
the basic building blocks ...

but your ${extract suggestion/reference should do just fine.

cheers,

richard