1 Date: Tue, 12 Oct 1999 13:07:25 -0500
2 From: mark david mcCreary <mdm@internet-tools.com>
4 Most modern email readers will now show any URL's in the body of an
5 email message as a clickable link. AOL also does this, but needs the
6 URL to be in the HTML syntax.
8 The following configuration and program will allow messages going to
9 AOL only, to be filtered thru a Perl script. This Perl script will
10 convert any URL's to the HTML syntax.
12 In addition, the transport will use VERP to send a unique envelope
13 sender with each message.
15 It is useful for mailing lists.
19 ######################################################################
20 # TRANPORTS CONFIGURATION #
21 ######################################################################
23 # This transport is used for delivering messages AOL messages one at a time
24 # It will put their email address in the To: line
25 # It will create a custom sender envelope address that will allow bounces
26 # to be easier to track.
31 "To:Message-Id:Resent-To:Resent-Date:Resent-From:Resent-Message-Id:Resent-Bcc",
32 add_headers = "To: $local_part@$domain\n\
34 <Epah${length_3:$local_part}${substr_17_2:$tod_log}${substr_14_2:$tod_log}${subs
35 tr_11_2:$tod_log}${length_3:$domain}\
37 transport_filter = "/usr/local/bin/aol_transport_filter.pl",
38 return_path = "${if match {$return_path}{^(.+?)-request@.*\\$}\
39 {bounce-$1=$local_part=$domain@$primary_hostname}fail}",
45 ######################################################################
46 # ROUTERS CONFIGURATION #
47 ######################################################################
49 filter_msg_aol_domains:
62 ######################################################################
63 # /usr/local/bin/aol_transport_filter.pl
64 ######################################################################
68 # This program will tweak the body of all email messages going to
69 # America On Line (AOL).
71 # It will change a plain text URL clause to an HTML version
72 # since that is how the AOL email reader works.
76 # http://commerce.internet-tools.com becomes
79 HREF="http://commerce.internet-tools.com">http://commerce.internet-tools.com</A>
81 # or also with the https, mailto, and ftp prefix
86 $/ = ""; # set paragraph mode
87 chomp($headers = <STDIN>); # read a paragraph, remove trailing newlines
88 $/ = "\n"; # unset paragraph mode
90 printf(STDOUT "%s\n\n", $headers);
95 s%\b((mailto:|((http(s?)|ftp)://)).*?)(?=(\s|:\s|\.\s|;\s|,\s|\?\s|!\s))%<A