Re: [EXIM] Numeric testing within directors/routers

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Steven A. Reisman
Dátum:  
Címzett: exim-users
Tárgy: Re: [EXIM] Numeric testing within directors/routers
> On Thu, 2 Jul 1998, Elena Blanco wrote:

> > I would like to restrict the size of message that Exim will process for specific
> > hosts rather than globally. To achieve this I intended to use a smartuser
> > director to compare the value of $message_size against a limit but there doesn't
> > seem to be the usual arithmetical operators I would have expected (g, gt, le, lt
> > etc). I would prefer not to resort to using filter files so is there any plan
> > to provide this type of numeric testing within directors/routers? Is this a
> > contender for the wish list?


> The original conception was for testing strings only, and the existing
> "eq" operator in the expansion syntax does a string rather than a
> numeric comparison. (This was copied from smail, which had only the eq
> operator.) Adding numeric operators was already on the "old" wish list.
> I have now added it to the "new" wish list, where I am recording the
> identities of people who support specific items. Once the next release
> of Exim is out, I may publish the new wish list for people to comment
> on, but as previously mentioned, I do want to spend time working on
> introductory documentation, the FAQ, etc.



To test if "$message_size <= 1000000" how about:

        ${if eq{$substr_-1000000_$message_size:x}{}}




-- 
Steven A. Reisman (sar@???)         Duluth/Superior: 715-395-0311
PressEnter!            |  River Falls: 715-426-2100  Menomonie: 715-232-0430
P.O. Box 312           |   Eau Claire: 715-830-1273   LaCrosse: 608-785-1411
421 N 2nd Street       | New Richmond: 715-246-7060   Somerset: 715-246-7060
River Falls, WI  54022 |  Twin Cities: 612-436-5254   Red Wing: 715-792-5279


--
*** Exim information can be found at http://www.exim.org/ ***