Re: [exim] Random number generation in an ACL

Pàgina inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
A: exim-users
Assumpte: Re: [exim] Random number generation in an ACL
Ian P. Christian wrote:
> I want to do a database cleanup in my exim config, so there's a 1 in 10,000
> chance some SQL will be run - I could cron it, but I prefer the config to be
> self-contained.
>
> To do this, I obviously need to generate a random number - is this possible in
> the ACLs? I've hacked it in using perl at the moment, but I'm just curious as
> to if I've missed anything - a built in ACL function or something.


Must it really be random, or would a little arithmetic on
a timestamp do?

- Jeremy