Re: [exim] Time based conditionals in ACLs

Pàgina inicial
Delete this message
Reply to this message
Autor: Chris Lightfoot
Data:  
A: exim-users
Assumpte: Re: [exim] Time based conditionals in ACLs
On Mon, Nov 13, 2006 at 09:53:30PM +0000, Stephen Gran wrote:
> On Mon, Nov 13, 2006 at 01:39:47PM -0800, Marc Perkel said:
> > Is there a way to do a time based conditional in an ACL? Like I want to
> > do something different for one minute out of every 5?
>
> Yes, use modulo on a time operator.


probably easier to do a regex match on $tod_zulu, for
instance,

    ${if match{$tod_zulu}{[05]Z\$}{ ... }fail}


or similar.

--
``We are not knocking down doors at four in the morning with people
booted and suited in riot gear. Most of the removals occur around
half-five, half-six, seven in the morning.''
(Tony McNulty denies reports of `dawn raids' on asylum seekers)