Re: postfix body_checks replace

2010-12-13 Thread Gianluca Gargiulo
ralf.hildebra...@charite.de To: postfix-users@postfix.org Sent: Friday, 10 December, 2010 14:43:23 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: Re: postfix body_checks replace * Gianluca Gargiulo gianluca.gargi...@ediconsul.it: Hello, i hope somebody can

Re: postfix body_checks replace

2010-12-13 Thread Ralf Hildebrandt
* Gianluca Gargiulo gianluca.gargi...@ediconsul.it: Ok, thank you for your help. I have tested it, but when an e-mail has more than one links, the body_checks changes only one. Yes, if the links are on the same line P.S.: can you indicate some fast sheet to learn some regexp? A book

Re: postfix body_checks replace

2010-12-13 Thread Gianluca Gargiulo
/ Berlin / Bern / Rome / Stockholm / Vienna Subject: Re: postfix body_checks replace * Gianluca Gargiulo gianluca.gargi...@ediconsul.it: Ok, thank you for your help. I have tested it, but when an e-mail has more than one links, the body_checks changes only one. Yes

Re: postfix body_checks replace

2010-12-13 Thread Ralf Hildebrandt
* Gianluca Gargiulo gianluca.gargi...@ediconsul.it: it's possible to replace all links in mail, also those on some line? Not in a generic fashion. My pattern works for one occurence, but can be adapted for 2,3,4,...,etc

Re: postfix body_checks replace

2010-12-13 Thread gianluca . gargiulo
/ Rome / Stockholm / Vienna Subject: Re: postfix body_checks replace * Gianluca Gargiulo gianluca.gargi...@ediconsul.it: it's possible to replace all links in mail, also those on some line? Not in a generic fashion. My pattern works for one occurence, but can be adapted for 2,3,4

Re: postfix body_checks replace

2010-12-13 Thread Ralf Hildebrandt
* gianluca.gargi...@ediconsul.it gianluca.gargi...@ediconsul.it: ...and you'd be so kind as to tell me how? /^(.*)www\.mydomain\.it(.*)$/ REPLACE ${1}www.otherdomain.it${2} becomes: /^(.*)www\.mydomain\.it(.*)www\.mydomain\.it(.*)$/ REPLACE ${1}www.otherdomain.it${2}www.otherdomain.it${3}

Re: postfix body_checks replace

2010-12-13 Thread Gianluca Gargiulo
Subject: Re: postfix body_checks replace * gianluca.gargi...@ediconsul.it gianluca.gargi...@ediconsul.it: ...and you'd be so kind as to tell me how? /^(.*)www\.mydomain\.it(.*)$/ REPLACE ${1}www.otherdomain.it${2} becomes: /^(.*)www\.mydomain\.it(.*)www\.mydomain\.it(.*)$/ REPLACE

Re: postfix body_checks replace

2010-12-13 Thread Victor Duchovni
On Mon, Dec 13, 2010 at 02:32:20PM +0100, Ralf Hildebrandt wrote: * Gianluca Gargiulo gianluca.gargi...@ediconsul.it: it's possible to replace all links in mail, also those on some line? Not in a generic fashion. My pattern works for one occurence, but can be adapted for 2,3,4,...,etc

Re: postfix body_checks replace

2010-12-13 Thread Victor Duchovni
On Mon, Dec 13, 2010 at 03:08:43PM +0100, Gianluca Gargiulo wrote: no, this not works You are trying to do the wrong thing. You can't succeed along these lines. -- Viktor.

Re: postfix body_checks replace

2010-12-13 Thread Simone Caruso
On 13/12/2010 15:08, Gianluca Gargiulo wrote: no, this not works I think u should write a content filter for this task... or try to modify Amavis code. -- Simone Caruso IT Consultant +39 349 65 90 805 p.iva: 03045250838

Re: postfix body_checks replace

2010-12-13 Thread mouss
Le 13/12/2010 14:30, Gianluca Gargiulo a écrit : it's possible to replace all links in mail, also those on some line? postfix body_checks use regular expressions. you can certainly devise expressions to rewrite 1, 2 ,3 ... words in a line: /(.*)foo(.*)foo(.*)foo(.*)foo(.*)/ REPLACE

postfix body_checks replace

2010-12-10 Thread Gianluca Gargiulo
Hello, i hope somebody can help me I must to replace any sub-string in every mail processed by postfix. I set my postfix so: in main.cf body_checks=regexp:/etc/postfix/body_checks and then in Body_checks # aaa /www.mydomain.it/ REPLACE www.otherdomain.it but this way provide to

Re: postfix body_checks replace

2010-12-10 Thread Victor Duchovni
On Fri, Dec 10, 2010 at 02:40:24PM +0100, Gianluca Gargiulo wrote: Hello, i hope somebody can help me I must to replace any sub-string in every mail processed by postfix. I set my postfix so: in main.cf body_checks=regexp:/etc/postfix/body_checks This is NOT a job for the Postfix