[exim] Numeric Comparison / debugging issue

Etusivu
Poista viesti
Vastaa
Lähettäjä: Andrew Johnson
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Numeric Comparison / debugging issue
Exim version 4.51

Firstly, I can't see why my condition is failing, but secondly if I rin with
-d+all instead of -d+expand I get totally different answers because the zulu
time expands wrong....


run with -d+expand

 5576 expanding:
${extract{cwnhsPasswordExpiryDate}{$acl_c8}{$value}{000000000000}}
 5576    result: 20051005121715
 5576 expanding:
${lc:${extract{cwnhsPasswordExpiryDate}{$acl_c8}{$value}{000000000000}}}
 5576    result: 20051005121715
 5576 expanding:
${substr_0_12:${lc:${extract{cwnhsPasswordExpiryDate}{$acl_c8}{$value}{00000
0000000}}}}
 5576    result: 200510051217
 5576 check set acl_c1 =
${substr_0_12:${lc:${extract{cwnhsPasswordExpiryDate}{$acl_c8}{$value}{00000
0000000}}}}
 5576                  = 200510051217
 5576 expanding: $tod_zulu
 5576    result: 20051007102633Z
 5576 expanding: ${substr_0_12:$tod_zulu}
 5576    result: 200510071026
 5576 check set acl_c2 = ${substr_0_12:$tod_zulu}
 5576                  = 200510071026
 5576 expanding: $acl_c1
 5576    result: 200510051217
 5576 expanding: $acl_c2
 5576    result: 200510071026
 5576 condition: < {$acl_c1}{$acl_c2}
 5576    result: false
 5576 expanding: yes
 5576    result: yes
 5576 skipping: result is not used
 5576 expanding: no
 5576    result: no
 5576 expanding: ${if < {$acl_c1}{$acl_c2}{yes}{no}}
 5576    result: no
 5576 check condition = ${if < {$acl_c1}{$acl_c2}{yes}{no}}
 5576                 = no


run with -d+all

11:27:48  5580 expanding:
${substr_0_12:${lc:${extract{cwnhsPasswordExpiryDate}{$acl_c8}{$value}{00000
0000000}}}}
11:27:48  5580    result: 200510051217
11:27:48  5580 check set acl_c1 =
${substr_0_12:${lc:${extract{cwnhsPasswordExpiryDate}{$acl_c8}{$value}{00000
0000000}}}}
11:27:48  5580                  = 200510051217
11:27:48  5580 ---1 Get 0x81086b0    16       string.c  349
11:27:48  5580 ---0 Get 0x810b440    88       expand.c 2667
11:27:48  5580 ---0 Get 0x810b498    80       expand.c 2667
11:27:48  5580 ---0 Rst 0x810b498    **       expand.c 2743 41000
11:27:48  5580 ---0 Get 0x810b498   104       string.c  858
11:27:48  5580 ---0 Rst 0x810b4a8    **       expand.c 4621 41000
11:27:48  5580 expanding: $tod_zulu
11:27:48  5580    result: 2005-10-07 11:2
11:27:48  5580 ---0 Rst 0x810b44d    **       expand.c 4621 41000
11:27:48  5580 expanding: ${substr_0_12:$tod_zulu}
11:27:48  5580    result: 2005-10-07 1
11:27:48  5580 check set acl_c2 = ${substr_0_12:$tod_zulu}
11:27:48  5580                  = 2005-10-07 1
11:27:48  5580 ---1 Get 0x81086c0    16       string.c  349
11:27:48  5580 ---0 Get 0x810b450   104       expand.c 2667
11:27:48  5580 ---0 Get 0x810b4b8    96       expand.c 2667
11:27:48  5580 ---0 Rst 0x810b4b8    **       expand.c 2743 41000
11:27:48  5580 ---0 Get 0x810b4b8   104       string.c  858
11:27:48  5580 ---0 Rst 0x810b4c5    **       expand.c 4621 41000
11:27:48  5580 expanding: $acl_c1
11:27:48  5580    result: 200510051217
11:27:48  5580 ---0 Get 0x810b4c8    88       expand.c 2667
11:27:48  5580 ---0 Rst 0x810b4c8    **       expand.c 2743 41000
11:27:48  5580 ---0 Get 0x810b4c8   104       string.c  858
11:27:48  5580 ---0 Rst 0x810b4d5    **       expand.c 4621 41000
11:27:48  5580 expanding: $acl_c2
11:27:48  5580    result: 2005-10-07 1
11:27:48  5580 ---0 Get 0x810b4d8    32       string.c  349
11:27:48  5580 failed to expand: ${if < {$acl_c1}{$acl_c2}{yes}{no}}


-Andy-