[exim-dev] [Bug 1155] New: .ifdef test matches on substring

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-dev
New-Topics: [exim-dev] [Bug 1155] .ifdef test matches on substring, [exim-dev] [Bug 1155] .ifdef test matches on substring, [exim-dev] [Bug 1155] .ifdef test matches on substring, [exim-dev] [Bug 1155] .ifdef test matches on substring
Subject: [exim-dev] [Bug 1155] New: .ifdef test matches on substring
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1155
           Summary: .ifdef test matches on substring
           Product: Exim
           Version: 4.76
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: low
         Component: Unfiled
        AssignedTo: nigel@???
        ReportedBy: eximusers@???
                CC: exim-dev@???



Hello,

this might be a documentation issue. The .ifdef test succeeds if a substring is
defined:
------------------------------
ametzler@argenau:~$ cat /tmp/exim4conftest
LO = 1

.ifdef LONG_STRING
primary_hostname = yyy
.endif
ametzler@argenau:~$ /usr/sbin/exim -C /tmp/exim4conftest -bP primary_hostname
primary_hostname = yyy
ametzler@argenau:~$
------------------------------

The documentation does not make this completely clear:

It correctly describes exim's behavior with "The condition that is tested is
whether or not any macro substitution has taken place in the line."

But the explantion for the following example says "sets a message size limit of
50M if the macro AAA is defined, and 100M otherwise." Which is clearly wrong,
the test would also succeed if AA was defined.

cu andreas


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