[exim] How to log only one of identical multiple header line…

Góra strony
Delete this message
Reply to this message
Autor: Vaughan Wittorff
Data:  
Dla: exim-users
Temat: [exim] How to log only one of identical multiple header lines?
I presently logwrite various things for discarded messages, including
$h_X-Cam-SpamScore. My problem is that quite a few of my messages
discarded as spam (those passing through cl.cam mailing lists) have
two identical X-Cam-SpamScore lines, and so for those I get two
copies of sssssss (or whatever) in the log, separated by a \n.

Is there any way to take only one of the X-Cam-SpamScore lines, or
take just what is before (or after) the \n in the contents of $h_X-
Cam-SpamScore and just log that?

TIA,
Vaughan