[Mimedefang] Search and replace placeholders with MIMEDefang
Martin Zapfl
mailinglists at tbits.net
Fri Mar 6 07:03:55 EST 2009
Thanks for your fast answer.
I made some trials but unfortuately i did not get it working.
Maybe you could send me a short example code how to replace texta with textb
by using action_replace_with_warning():
Thanks a lot :-)
On Wednesday 04 March 2009 02:11:50 pm Steffen Kaiser wrote:
> On Wed, 4 Mar 2009, Martin Zapfl wrote:
> > As things change it is neccessary for us to replace a placeholder
> > anywhere within an E-Mail with the disclaimer text.
>
> Well, in sub filter() you get a MIME::Entity object you can access the
> content with. Make sure you alter just text entities, e.g. keep your hands
> off "real" attachements.
>
> Set $Action = 'replace' and $ReplacementEntity to the new, modified MIME
> entity. See action_replace_with_warning() in mimedefang.pl.
>
> Bye,
More information about the MIMEDefang
mailing list