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

Pàgina inicial
Delete this message
Reply to this message
Autor: Mike Cardwell
Data:  
A: Exim Users List
Assumpte: Re: [exim] How to log only one of identical multiple header lines?
Vaughan Wittorff wrote:

> 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?



Replace:

$h_X-Cam-SpamScore:

With:

${sg{$h_X-Cam-SpamScore:}{\N\n.*\N}{}}

(Untested)

Mike