Changeset 506 for trunk/email2trac.py.in
- Timestamp:
- 01/10/11 14:06:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r503 r506 2075 2075 This function returns a HTML mailto tag with the ticket id and author email address 2076 2076 """ 2077 self.logger.debug("function html_mailto_link") 2077 2078 if not self.author: 2078 2079 author = self.email_addr … … 2085 2086 ## use urllib to escape the chars 2086 2087 # 2087 s = ' mailto:%s?Subject=%s&Cc=%s' %(2088 s = '%s?Subject=%s&Cc=%s' %( 2088 2089 urllib.quote(self.email_addr), 2089 2090 urllib.quote('Re: #%s: %s' %(self.id, subject)), … … 2091 2092 ) 2092 2093 2093 s = '\r\n{{{\r\n#!html\r\n<a\r\n href="%s">Reply to: %s\r\n</a>\r\n}}}\r\n' %(s, author) 2094 if self.VERSION in [ 0.10 ]: 2095 s = '\r\n{{{\r\n#!html\r\n<a\r\n href="mailto:%s">Reply to: %s\r\n</a>\r\n}}}\r\n' %(s, author) 2096 else: 2097 s = '[mailto:"%s" Reply to: %s]' %(s, author) 2098 2099 self.logger.debug("\tmailto link %s" %s) 2094 2100 return s 2095 2101
Note: See TracChangeset
for help on using the changeset viewer.