Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 9 years ago

#1751 closed enhancement (fixed)

Support of mailto: link

Reported by: Shun-ichi Goto <gotoh@…> Owned by: anonymous
Priority: normal Milestone: 0.9
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This is patch (2nd chunk) to support mailto: link like [mailto:gotoh@taiyo.co.jp My Name] which can be used in earlier version and lost in svn head.

And also patch (1st chunk) to treat mailto:xxxx in text as URL.

Index: formatter.py
===================================================================
--- formatter.py	(revision 1886)
+++ formatter.py	(working copy)
@@ -265,7 +265,7 @@
         
         if ns in self.link_resolvers:
             return self._link_resolvers[ns](self, ns, target, match)
-        elif target[:2] == '//':
+        elif target[:2] == '//' or ns == 'mailto':
             return self._make_ext_link(match, match)
         else:
             return match
@@ -276,7 +276,7 @@
         label = fullmatch.group('label')
         if ns in self.link_resolvers:
             return self._link_resolvers[ns](self, ns, target, label)
-        elif target[:2] == '//':
+        elif target[:2] == '//' or ns == 'mailto':
             return self._make_ext_link(ns+':'+target, label)
         else:
             return match

Attachments (0)

Change History (4)

comment:1 by anonymous, 19 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to anonymous
Status: newassigned

Implemented in the InterTrac branch (r1894)

comment:2 by Jonas Borgström, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1936].

comment:3 by sfox@…, 9 years ago

Hello, we are using 0.12.3 and mailto is not working.

comment:4 by Ryan J Ollos, 9 years ago

Please ask on the MailingList. One possibility is that the link is not rendered due to settings and permissions in Trac.

Version 0, edited 9 years ago by Ryan J Ollos (next)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from anonymous to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.