On Mon, Jun 18, 2007 at 04:16:49PM +0100, Graeme Fowler wrote:
> On Mon, 2007-06-18 at 08:01 -0700, Marc Perkel wrote:
> > There you go again. The answer isn't in the docs because I don't want to 
> > set the rate limit to 0. I want to detect a rate and return it into a 
> > variable that I can use in another ACL. It helps if you read the 
> > question before giving me the RTFM answer that you always reply with.
> 
> There I go again, yes. From TFM:
> 
>    The ratelimit ACL condition can be used to measure and control the
> rate at which clients can send email. 
> 
> That's "measure and control". The key word here is "measure".
> 
> If you use, in your ACL, a "warn" statement where the current rate is
> compared to a rate of 0, then - as if by magic - all the variables that
> the rate limiting code utilises will get populated with data. If you
> don't put any "ratelimit =" statements in, they remain empty.
>
> If you don't want to do any rate limiting, use a rate of 0 and a period
> defined by you, in a "warn" statement, and then use the variables
> afterwards.

The only caveat is that there is not currently a way to read the value
of a ratelimit counter without causing the counter to advance at
least once in the ACLs.

This was discussed last November here:

  
http://www.exim.org/mail-archives/exim-users/Week-of-Mon-20061106/msg00323.html

--
Dean Brooks
[EMAIL PROTECTED]

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to