[exim-dev] [Bug 167] Make "true" and "false" valid expansion…

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 167] Make "true" and "false" valid expansion conditions
------- You are receiving this mail because: -------
You are the QA contact for the bug.

http://bugs.exim.org/show_bug.cgi?id=167




--- Comment #5 from Nico Erfurth <masta@???> 2007-08-02 10:19:01 ---
Philip Hazel wrote:

>> Well, i think a new condtion like true would be nice, as it could evaluate
>> true/false as confirming to the everything else in the expansion
>> code(expand_check_condition). Adding the new condition shouldn't be a problem
>> and could prove pretty useful.
>
> Please show an example of where it could be useful.


I had some of this cases in my old configuration. But, the dog ate it
^W^W^W^W it went down with the harddrive in my old server.

I used it mostly to set acl-variables somewhere in the acls, and later
checked them in the routers in some pretty weird conditions including
databaselookups etc.

I just think that something like
${if true:acl_m1}

is more intuitive than:
${if eq{$acl_m1}{1}}

Where you also have to remember whatever you set acl_m1 to true/1/yes
(I'm pretty bad in remembering these things).

Nico


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email