[exim-dev] [Bug 1518] router condition silently ignored if t…

Pàgina inicial
Delete this message
Reply to this message
Autor: PP
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 1518] router condition silently ignored if too many back braces
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

PP <bugzilla@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|high                        |low





--- Comment #6 from PP <bugzilla@???> 2014-08-26 16:50:48 ---
Ah you're absolutely right. In fact you can put excess forward braces in, too:

    # /usr/sbin/exim4 -be '${if eq {1}{1}} {yes}{no}{{}'
    true {yes}{no}{{}


Which means Exim is behaving as expected. It only looks for '{'s when they mean
something (like after a '$' or when required as part of a conditional). But
otherwise '{' and '}' are ordinary characters.

I wonder whether recommending deliberate escaping of braces when intended for
use as ordinary string characters is of benefit. But such a change could break
existing configurations and that wouldn't be good if they previously relied on
such behaviour.

Dropping priority to low. It definitely could trip up a configuration writer
(because of the silent nature of the condition failing to work as expected).
But then... the side effects could be relied upon in the wild.

Perhaps you'd like to close this issue as it appears nothing is buggy here.


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