[exim] Random number generation in an ACL

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Ian P. Christian
Data:  
Para: exim-users
Assunto: [exim] Random number generation in an ACL
Hi all,

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.

Kind Regards,

Ian
--
Ian P. Christian
http://pookey.co.uk