In article <[email protected]>,
Mike Cardwell <[email protected]> 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?
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/