Re: [exim] Logging a specific header to a different log file

Etusivu
Poista viesti
Vastaa
Lähettäjä: Graeme Fowler
Päiväys:  
Vastaanottaja: exim-users@exim.org
Aihe: Re: [exim] Logging a specific header to a different log file
On 17 Nov 2015, at 03:01, Daniel Oakes <Daniel.Oakes@???> wrote:
> What I'm trying to do is log a specific header line in the received: portion to a different log file.


You need the ${run{/some/script}} expansion construct. In a simple (and untested!) form:

warn condition = ${run{/bin/echo "${sg{$h_Received:}{\Nregex here\N}{replacement}}"}{true}{true}}

Regards

Graeme