Changeset 506 for trunk/email2trac.py.in


Ignore:
Timestamp:
01/10/11 14:06:35 (13 years ago)
Author:
bas
Message:

fixed mailto link buf for trac 0.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r503 r506  
    20752075                This function returns a HTML mailto tag with the ticket id and author email address
    20762076                """
     2077                self.logger.debug("function html_mailto_link")
    20772078                if not self.author:
    20782079                        author = self.email_addr
     
    20852086                ## use urllib to escape the chars
    20862087                #
    2087                 s = 'mailto:%s?Subject=%s&Cc=%s' %(
     2088                s = '%s?Subject=%s&Cc=%s' %(
    20882089                       urllib.quote(self.email_addr),
    20892090                           urllib.quote('Re: #%s: %s' %(self.id, subject)),
     
    20912092                           )
    20922093
    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)
    20942100                return s
    20952101
Note: See TracChangeset for help on using the changeset viewer.