[Mimedefang] Email addresses in HTML text
Mickey Hill
mickey at rudolphtire.com
Tue Mar 4 10:11:01 EST 2003
Hi all,
Email addresses in the form <user at company.com> that are sent to
append_html_boilerplate() are added as-is, and my mail client (and most
others, I assume) interpret these as unknown HTML tags, and ignores them.
So, instead of "For more information about your site's MIMEDefang policy,
contact Postmaster <postmaster at company.com>.", I get "contact Postmaster .".
Here's one solution. Take anything matching <*@*> and convert to
<*@*>. There's no valid HTML tag containing the @ symbol, is there?
Is this too much of a hack, or is this a general enough case that this is a
good way to fix it?
--- mimedefang.pl.orig Mon Mar 3 13:32:26 2003
+++ mimedefang.pl Tue Mar 4 09:04:10 2003
@@ -3923,6 +3923,8 @@
#***********************************************************************
sub append_html_boilerplate ($$$) {
my($msg, $boilerplate, $all) = @_;
+ # Reformat greater-than and less-than in email addresses
+ $boilerplate =~ s/<(.+)@(.+)>/<$1\@$2>/g;
my($part);
if (!$all) {
$part = find_part($msg, "text/html");
_________________________
Mickey Hill
Rudolph's Inc
2021 Rob Mason Rd
PO Box 69
Murray KY 42071 USA
Phone (270) 753-0686 x124
(800) 231-2295
Fax (270) 753-4230
mickey at rudolphtire.com
www.rudolphtire.com
More information about the MIMEDefang
mailing list