[exim] Exim 4.64 expansion weirdness?

Top Page
Delete this message
Reply to this message
Author: Odhiambo G. Washington
Date:  
To: exim-users
Subject: [exim] Exim 4.64 expansion weirdness?
Happy Christmas to all!

I've seen some discussions about Exim 4.64, although I seem to have
missed the release announcement....
I downloaded and compiled it for testing. Immediately I saw some two
problems with expansions, which never appeared with 4.63:


Case 1::

With 4.64:

7$ ./Administration/Exim/4.64/exim-4.64/build-FreeBSD-i386/exim -be '${if >{$acl_c0}{4}{1}{0}}'
Failed: integer expected but "" found

With 4.63:

8$ exim -be '${if >{$acl_c0}{4}{1}{0}}'
0

I am not sure why exim-4.64 is complaining on the above ......


Case 2::

With 4.64 (expansion tested inside singe quotes):

10$ ./Administration/Exim/4.64/exim-4.64/build-FreeBSD-i386/exim -be '${if and {{!def:h_X-Spam-Flag:}{!def:h_X-FILTER-DSPAM:}{!eq {$received_pr
otocol}{dspam-scanned}}{!eq {$received_protocol}{local}}{!eq {$sender_address_domain}{$domain}}{ <= {$message_size}{512k}}}{1}{0}}'
1

However, what prompted me to test the condition is that exim-4.64
was barfing about this very condition severally in the logs:

2006-12-25 12:13:53 1Gylu5-000Pba-CH failed to expand condition "${if and { {!def:h_X-Spam-Flag:} {!def:h_X-FILTER-DSPAM:} {!eq {$received_protoc
ol}{dspam-scanned}} {!eq {$received_protocol}{local}} {!eq {$sender_address_domain}{$domain}} { <= {$message_size}{512k}} }{1}{0}}" for dspam_rou
ter router: integer expected but "" found inside "and{...}" condition

Exim-4.63 never barfed at all about this. After looking closely I
found that I had enclosed the condition inside double quotes. It would
appear that if an expansion is put inside double quotes in the configure
file, exim-4.64 does NOT treat it the same as when it is not quoted at
all... otherwise how do I explain the barfs against the 'exim -be'
testing on the command line?




        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
wash () WANANCHI ! com            . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
                         --from a /. post