Changeset 506


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

fixed mailto link buf for trac 0.12

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r503 r506  
    1 1.X.X (2010-XX-XX)
     12.0.1 (2010-XX-XX)
    22   * An email adress can match multiple trac accounts, closes #218
    33     Author: Konstantin Ryabitsev <icon add mricon dot com>
     
    6868     Applied by: Bas van der Vlies
    6969
     70   * Fixed mailto link for trac 0.11 and 0.12. Use the mailto tag in stead of
     71     an html tag. The html tag does not work for trac 0.12
     72     Reported by: Wim Rijks
     73     Author: Bas van der Vlies
     74   
    70751.6.0 (2010-8-10)
    7176   * Fixed an Unicode error in strip_quotes
  • trunk/debian/changelog

    r504 r506  
     1email2trac (2.0.1-1) stable; urgency=low
     2
     3  * mailto fix for trac 0.12
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Mon, 10 Jan 2011 11:12:01 +0100
     6
    17email2trac (2.0.0-1) stable; urgency=low
    28
  • trunk/debian/compat

    r49 r506  
    1 4
     15
  • 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
  • trunk/email2trac.spec

    r505 r506  
    11Summary: Utilities for converting emails to trac tickets
    22Name: email2trac
    3 Version: 2.0.0
     3Version: 2.0.1
    44Release: 1
    55License: GPL
Note: See TracChangeset for help on using the changeset viewer.