.forward fatal regex error

Andreas Metzler ametzler at bebt.de
Sun Mar 15 15:07:03 GMT 2026


On 2026-03-13 Terry Roy via Pkg-exim4-users <pkg-exim4-users at alioth-lists.debian.net> wrote:
> Hello,

> I run exim-daemon-heavy on Trixie. I have used a .forward file for quite
> some time with no issues.  I added a new filter and tested it with:

> /usr/sbin/exim4 -bf /path/to/.forward <testemail

> This is the filter:

> if
>   $header_subject: contains "cron.daily" and
>   $message_body: matches "\\N\\/etc.+:\\nTo.+git\\n.+master(?!\\n.*)\\N"
[...]

Hello Terry,

$message_body does not contain\n anymore.
https://www.exim.org/exim-html-current/doc/html/spec_html/filter_ch-exim_filter_files.html

$message_body: The initial portion of the body of the message. By
default, up to 500 characters are read into this variable, but the
system administrator can configure this to some other value. Newlines in
the body are converted into single spaces.

cu Andreas
-- 
"You people are noisy," Nia said.
I made the gesture of agreement.



More information about the Pkg-exim4-users mailing list