[Mimedefang] Search and replace placeholders with MIMEDefang
Steffen Kaiser
skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Wed Mar 4 08:11:50 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSa5+GNlJzF6z/k3SAQLC+gf9H2Wn95wGSSLFYCIgARBVa3L2MDrWzsn1
QA3Ti/wzcS6je3ZX0PXIafdVVtwUCn5kxrzLapPkml28Cht563epKpuW6QiGrAr2
VSVJkzwpLgFJdys5GvSURFVTv+NCaUoW1JS+LW3Pkyhp9tbyOmVC+tcJdPXk5fG9
1Q+FKmLSW+Bq+ZuN+MRSFptIJ1icd87gTZ6smnmpWbeSHOAl9XA5jSaBufwYEZlI
onm6CZrPchfi13NYMMcNLJEaXdW3IpgKoPnyfV5zdr2/cbzvx6Q3Jy4xT1VG2NQx
jvQvSW3AF0vMvRHX5u9iQ7d2GqMTPMOXuoVA8RPHitiFz8uMYxSYyg==
=/Ea5
-----END PGP SIGNATURE-----
More information about the MIMEDefang
mailing list