postfix-users May 2012 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Body Checks Replace

Body Checks Replace

From: varad gupta <postfix.vbg_at_nospam>
Date: Tue May 22 2012 - 14:33:41 GMT
To: postfix-users@postfix.org

Hi All

I need to replace all occurences of "text1" in mailbody with "text2".

The regexp =>

/^(.*)text1(.*)$/ REPLACE $1text2$2 works if there is only one
occurence of "text1" in a line.

It changes only the last occurence of "text1" in a single line which
has multiple occurences of "text1" in the same line.

Kindly advise how to replace "text1" with "text2" for multiple
occurences of "text1" in the same line

Regards

Varad Gupta