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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Vaughan Wittorff
Date:  
À: exim-users
Sujet: Re: [exim] How to log only one of identical multiple header lines?
In article <20090109.154057.1412@???>,
Mike Cardwell <exim-users@???> wrote:

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


No, it didn't work (a logwrite line containing that does not output
anything at all, not even the other parts of the logwrite argument).

Any other ideas?