[Mimedefang] Re: proposing a patch for URL listing in boilerplate and more

Yizhar Hurwitz yizhar at mail.com
Wed Dec 26 15:17:00 EST 2007


To David - yes, the idea of "action_save_for_web" seems to me like the 
right way,
and I can help testing it.

 > From: Kenneth Porter:
 > Why does it need to be HTML? Most GUI email clients recognize URLs in
 > text/plain and will allow one to click on them to launch a browser.

MS Outlook doesn't show clickable links in plain text parts,
and this is one of the reasons that I wrote my customized version that I 
sent before.

Also, as far as I know - if there are both HTML and PLAIN versions of 
the same message
most email clients will display the HTML version.
so we will need to modify both PLAIN and HTML parts using the boilerplate.

The following procedure from my previos post here demonstartes how I 
solved/workedaround some problems:

# %PROCEDURE: list_detached_files
sub list_detached_files ($) {
    my($entity) = @_;
    my $plain = $DetachListTextTop. join("\n", @DetachedFiles).
    my $html = $plain;
    $html =~ s|(http://\S*)|<a href="$1">$1</a>|g;
    $html =~ s/\n/<br>\n/g;
    append_text_boilerplate($entity, $plain, 0);
    append_html_boilerplate($entity, $html, 0);

My 2c,
Yizhar Hurwitz

More information about the MIMEDefang mailing list