Noel Jones:
> Artem Bokhan wrote:
> > Noel Jones ?????:
> >> Artem Bokhan wrote:
> >>> How can I insert newline with header checks?
> >>>
> >>> smth like /(.*)example(.*)/ REPLACE $1\n $2
> >>
> >> You can't. The REPLACE action does not support multi-line headers.
> >>
> >> -- Noel Jones
> > It does if input header is multi-line... but catching newline char from
> > input is ugly...
>
> I'm pretty sure REPLACE will fold multi-line input into a
> single output line. I welcome a correction with evidence.
It should work - each input for header_checks is of the form
text (newline whitespace text*)*
There currently is no code to enforce that newline is followed by
whitespace as required by RFCs, but such code may be added when I
have time. The REPLACE action is not supposed to inject arbitrary
content into an email message.
Wietse