RT (2.0.15) doesn't get the mailto: link quite correct

Hi,

When an email is forwarded using MS Outlook, the quoted part looks
like this:-----Original Message-----
From: Somebody [mailto:somebody@somewhere.com]
Sent: Tuesday, April 08, 2003 10:44 AM
To: someoneelse@somewhere.com
Subject: Something

RT inserts a
for the email address. The regex it uses also includes the closing
’]’ that Outlook introduces, so the clickable URL is not usable (without
further editing).

This patch fixes this minor issue (it just adds a ] to the stuff that
signifies the end of the URL).

Maybe it ought to cater to ‘)’ also. Who knows?

Binand

— ./webrt/Ticket/Elements/ShowTransaction.old Tue Apr 8 07:44:04 2003
+++ ./webrt/Ticket/Elements/ShowTransaction Tue Apr 8 07:44:14 2003
@@ -42,7 +42,7 @@
$content =~ s/&/&/g;
$content =~ s/</</g;
$content =~ s/>/>/g;

  •     $content =~ s!((?:http|https|ftp|mailto):\S*?)([\s"']|&gt;|\.[\n])!<A HREF=\"$1\" TARGET=new>$1</A>$2!g;
    
  •     $content =~ s!((?:http|https|ftp|mailto):\S*?)([\s"'\]]|&gt;|\.[\n])!<A HREF=\"$1\" TARGET=new>$1</A>$2!g;
    
    
    }