Changeset 213


Ignore:
Timestamp:
07/11/08 16:55:28 (14 years ago)
Author:
bas
Message:

email2trac.py.in:

  • fixed some formating problems with trac version 0.11

debian/control:

  • Removed trac from depend statement. Trac 0.11 is distributed as egg
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r210 r213  
     12008-XX-XX
     2  * Fixed a bug in email_header formating. When an email2trac ticket
     3    was updated via the web interface it would trigger a description
     4    field update.
     5
     6    Fixed by: Bas van der Vlies
     7
    182008-05-30
    29  * Fixed debian control file. Package can be build on any platform and
  • trunk/debian/changelog

    r211 r213  
     1email2trac (0.30-2) stable; urgency=low
     2
     3  *  Fixed an error in formating email_header.
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Thu, 03 Jul 2008 12:53:39 +0200
     6
    17email2trac (0.30-1) stable; urgency=low
    28
  • trunk/debian/control

    r197 r213  
    1010Architecture: any
    1111Maintainer: Bas van der Vlies <bas@sara.nl>
    12 Depends: ${slibs:Depends}, python, cdbs, trac
     12Depends: ${slibs:Depends}, python, cdbs
    1313Description: Converts email to a trac ticket
    1414        Name says it All
  • trunk/email2trac.py.in

    r210 r213  
    377377                """
    378378                str = ''
    379                 if m['To'] and len(m['To']) > 0 and m['To'] != 'hic@sara.nl':
    380                         str = "'''To:''' %s [[BR]]" %(m['To'])
     379                #if m['To'] and len(m['To']) > 0 and m['To'] != 'hic@sara.nl':
     380                if m['To'] and len(m['To']) > 0:
     381                        str = "'''To:''' %s\r\n" %(m['To'])
    381382                if m['Cc'] and len(m['Cc']) > 0:
    382                         str = "%s'''Cc:''' %s [[BR]]" % (str, m['Cc'])
     383                        str = "%s'''Cc:''' %s\r\n" % (str, m['Cc'])
    383384
    384385                return  self.email_to_unicode(str)
     
    620621                if self.EMAIL_HEADER:
    621622                        head = self.email_header_txt(m)
    622                         body_text = u"\r\n%s \r\n%s" %(head, body_text)
     623                        body_text = u"%s\r\n%s" %(head, body_text)
    623624
    624625                tkt.save_changes(self.author, body_text, when)
     
    716717                body_text = self.get_body_text(msg)
    717718
    718                 tkt['description'] = '\r\n%s\r\n%s' \
     719                tkt['description'] = '%s\r\n%s' \
    719720                        %(head, body_text)
    720721
     
    741742                        #mailto = self.html_mailto_link(tkt['summary'], ticket_id, body_text)
    742743                        mailto = self.html_mailto_link( m['Subject'], ticket_id, body_text)
    743                         tkt['description'] = u'\r\n%s\r\n%s%s\r\n' \
     744                        tkt['description'] = u'%s\r\n%s%s\r\n' \
    744745                                %(head, mailto, body_text)
    745746
     
    944945
    945946                        tn = TicketNotifyEmail(self.env)
     947
    946948                        if self.notify_template:
    947949                                tn.template_name = self.notify_template;
     
    973975                           )
    974976
    975                 str = '\r\n{{{\r\n#!html\r\n<a href="%s">Reply to: %s</a>\r\n}}}\r\n' %(str, author)
     977                str = '\r\n{{{\r\n#!html\r\n<a\r\n href="%s">Reply to: %s\r\n</a>\r\n}}}\r\n' %(str, author)
    976978                return str
    977979
Note: See TracChangeset for help on using the changeset viewer.