Re: Body Checks Replace

2012-05-22 Thread Wietse Venema
varad gupta: > >>> Kindly advise how to replace "text1" with "text2" for multiple > >>> occurences of "text1" in the same line > > Can you suggest any way in which my requirement can be achieved (apart > from writing my own filter?) Like this: /etc/postfix/main.cf: header_checks = t

Re: Body Checks Replace

2012-05-22 Thread varad gupta
On Tue, May 22, 2012 at 8:25 PM, varad gupta wrote: > On Tue, May 22, 2012 at 8:21 PM, Wietse Venema wrote: >> varad gupta: >>> Hi All >>> >>> >>> I need to replace all occurences of "text1" in mailbody with "text2". >>> >>> The regexp => >>> >>> /^(.*)text1(.*)$/ REPLACE $1text2$2  works if ther

Re: Body Checks Replace

2012-05-22 Thread varad gupta
On Tue, May 22, 2012 at 8:19 PM, Brian Evans - Postfix List wrote: > On 5/22/2012 10:33 AM, varad gupta wrote: >> 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 >> occur

Re: Body Checks Replace

2012-05-22 Thread varad gupta
On Tue, May 22, 2012 at 8:21 PM, Wietse Venema wrote: > varad gupta: >> 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 change

Re: Body Checks Replace

2012-05-22 Thread Wietse Venema
varad gupta: > 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 > h

Re: Body Checks Replace

2012-05-22 Thread Brian Evans - Postfix List
On 5/22/2012 10:33 AM, varad gupta wrote: > 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

Body Checks Replace

2012-05-22 Thread varad gupta
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