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
* 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
/ 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
* 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
/ 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
* 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}
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
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
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.
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
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
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
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
13 matches
Mail list logo