Expansions: new ${lheader:<name>}. Bug 2272
[exim.git] / test / confs / 4560
index 10ead1c51c5b2b9826e89976dc928ef6a7853332..e2095af4cd2e4158e364799f0a6ae52cf9c140b5 100644 (file)
@@ -23,10 +23,19 @@ check_data:
   warn !verify =       arc VALUE
        INSERT
 
-  warn logwrite =      arc_state: <$arc_state>
-       logwrite =      domains:   <$arc_domains>
-       condition =     ${if def:arc_state_reason}
-       logwrite =      reason:    <$arc_state_reason>
+  warn logwrite =      arc_state:      <$arc_state>
+       logwrite =      domains:        <$arc_domains>
+       logwrite =      arc_oldest_pass <$arc_oldest_pass>
+       logwrite =      reason:         <$arc_state_reason>
+       logwrite =      lh_A-R:         <$lh_Authentication-Results:>
+       logwrite =      lh-ams:         <$lh_ARC-Authentication-Results:>
+#      logwrite =      oldest-p-ams:   <${listextract {$arc_oldest_pass} {$lh_ARC-Authentication-Results:}}>
+       logwrite =      oldest-p-ams:   <${reduce {$lh_ARC-Authentication-Results:} \
+                                               {} \
+                                               {${if = {$arc_oldest_pass} \
+                                                       {${extract {i}{${extract {1}{;}{$item}}}}} \
+                                                       {$item} {$value}}} \
+                                       }>
 
 .ifdef OPTION
   accept