You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bill Cole <sa...@billmail.scconsult.com> on 2018/03/01 13:19:34 UTC

Re: how to grep multiline add-header X-Spam lines

On 28 Feb 2018, at 16:13 (-0500), RW wrote:

> On Wed, 28 Feb 2018 21:01:36 +0100
> Benny Pedersen wrote:
>
>> how do one make multiline grep of add-header line, this is imho
>> triggy since it on long lines continue on next line with a first char
>> space, if one could help me solve it i be thankfull
>
> If you want to use grep, you can pipe the files through an awk
> one-liner to unfold the headers.

That works, but it is probably more convenient (if one has the procmail 
package installed or can install it easily and doesn't have awk syntax 
in the wetware) to use formmail -cs


-- 
Bill Cole
bill@scconsult.com or billcole@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole