Stefan Varga wrote:
Hi,

I would like to tag/replace each message Subject: with some custom pattern and leave the rest unchanged.

I'm using following header_checks rule:
/^Subject:.*/ REPLACE Subject: PRE $1
but I get a warning:
Aug 17 19:03:57 mail postfix/cleanup[20807]: [ID 947731 mail.warning] warning: regexp map /etc/postfix/header_checks, line 1: out of range replacement index "1": skipping this rule

the same rule without $1 is working fine. I'm using postfix 2.5.7.
Any thoughts please?

Thank you,
Stefan


$1 refers to text inside the first set of parenthesis "()". You don't seem to have any, so $1 is undefined.

/^Subject: (.*)$/  REPLACE Subject: PRE $1


  -- Noel Jones

Reply via email to