[Mimedefang] Change subject according to string match in body

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Fri Jan 22 09:29:06 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 20 Jan 2010, Johan Lundberg wrote:

> I have revised my code and moved it in to the filter subroutine as
> suggested. Everything seems to work as intended. Time to test it on the

Looks good to me.

>    if ($Sender =~ /\A(\<example\@example\.com\>)\z/) {

The ()'s are only needed, if you want to match multiple senders. I added 
the parenthesises, because I thought you are going to check for more than 
one address.
If I recall correctly, it is not required that the sender address has <> 
around it, hence, you should use <?example...>?

Regards,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBS1m2N0gddVksjRnHAQJEkQf/UxMp9FnV+rpkfRnkT8UEdXgX60Cpc1qU
eZFdvzimSWe65xva5OTSr47jQslZFIB69Lc7fXusoBk7Gl6iB8aK57Fp+PZSMSi1
DL6wtBmhM9SGiNKvbiO1B+SzGZxskDOXmqOdxDRBLcUTx4xWHCXwppO9GP47tMZK
AoYA+ZYkzbmXReTyhh+vA2l6GGVXArz7ANJ4J1QyYPXAmceMFMOTWp4V6B3KY1d7
Xvrv5Z66jAzbPlLD1MWc8ClOntum9wjZ7m2aCMKm8X90ZMf2KiA6bW7egw6Vn1wq
qqL2tKeknJi5IGkdGf9u3X/o5he8DGHRLln2+ZYBhEB4zL85Kiku3Q==
=nr7A
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list