[Mimedefang] Mailman Footer in MS Outlook Link

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Oct 25 02:08:35 EDT 2011


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

On Mon, 24 Oct 2011, Serving Soon wrote:

> By the way, the footer now is not an attachment but the unsubscribe
> link in the footer is not clickable.
>
> _I wonder if there is a solution for the link?_

Well, in the text-part the MUA must do it itself.

In the HTML-part you do not generate A tags. In the section below "my 
$html_footer = $footer;" and mangling the <>& characters add something 
like:

(all in one line, not tested much)

s~(http://[^<>&\s]+)~$url=$1; $url=~s/([,;.:?!]*)\z//; "<A 
HREF=\"$url\">$url</A>$1"~ge

The "$url=$1; $url=~s/([,;.]*)\z//;" is to strip puncation characters from 
the end of the URL, e.g.:

"
To unsubscribe click http://example.com/unsub?me=dkdkdk. To have more info 
...
"

and put them behind the </A> tag. I'm pretty sure, one can write the 
pattern somehow, that those characters are not matched at all ...

Regards,

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

iQEVAwUBTqZSZP41+pMevzVSAQLXlwf/Q2I13DNRkLfG0jilJXAHcsPP6HbxTBlh
w618l3Tqj9TXBaDXAZkqKlMV8JjbaH29zxJtVw0achzABpsagloD6P0NHQ9PorCp
RrT9wpM7a4eLVj65EYpgff2fSafb0jMj69Nmps5c6voQmb0yGvxzncK88vjdrjDq
gqxV5gAHJ1ezJ5b1C0N4k4rzOn7LW9K6JcAhYbN1+tpPKnjUcI+nqCfAk/DFrRUL
btlbMb5CofD1IZfbm4UiyGvo+IZdnvP7EZh3irVlvijBurf0IFbN0CLvxDqVUUhW
tF7SHCKHtpyy5wcH/Tx8XyrfRgmtSHvaq19DPdPHRtOJfsBBIqJuYQ==
=ih5p
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list