Re: [exim] Random numbers

Pàgina inicial
Delete this message
Reply to this message
Autor: Michael Haardt
Data:  
A: exim-users
Assumpte: Re: [exim] Random numbers
On Tue, Jan 10, 2006 at 03:08:08PM +0000, Ian Eiloart wrote:
> Does Exim have a random number generator? If not could this feature be
> added to the wish list, please?
>
> I'd like to be able to fakereject a random sample of spam, in order that I
> can examine the kind of stuff that we're rejecting. For example, I'd like
> to see a random sample of about 0.1% of the spam that we're rejecting from
> DNSBLists.


If it does not need to be too random, how about:

condition = ${if match{$tod_epoch}{[0-9]\$}{1}{0}}

The above matches always. Change the range to [01] for matching 20%
of the time or use [01]0 to match 2%. You get the idea.

I have enough spam coming in that the above works great.

Michael