Changeset 213
- Timestamp:
- 07/11/08 16:55:28 (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r210 r213 1 2008-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 1 8 2008-05-30 2 9 * Fixed debian control file. Package can be build on any platform and -
trunk/debian/changelog
r211 r213 1 email2trac (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 1 7 email2trac (0.30-1) stable; urgency=low 2 8 -
trunk/debian/control
r197 r213 10 10 Architecture: any 11 11 Maintainer: Bas van der Vlies <bas@sara.nl> 12 Depends: ${slibs:Depends}, python, cdbs , trac12 Depends: ${slibs:Depends}, python, cdbs 13 13 Description: Converts email to a trac ticket 14 14 Name says it All -
trunk/email2trac.py.in
r210 r213 377 377 """ 378 378 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']) 381 382 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']) 383 384 384 385 return self.email_to_unicode(str) … … 620 621 if self.EMAIL_HEADER: 621 622 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) 623 624 624 625 tkt.save_changes(self.author, body_text, when) … … 716 717 body_text = self.get_body_text(msg) 717 718 718 tkt['description'] = ' \r\n%s\r\n%s' \719 tkt['description'] = '%s\r\n%s' \ 719 720 %(head, body_text) 720 721 … … 741 742 #mailto = self.html_mailto_link(tkt['summary'], ticket_id, body_text) 742 743 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' \ 744 745 %(head, mailto, body_text) 745 746 … … 944 945 945 946 tn = TicketNotifyEmail(self.env) 947 946 948 if self.notify_template: 947 949 tn.template_name = self.notify_template; … … 973 975 ) 974 976 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) 976 978 return str 977 979
Note: See TracChangeset
for help on using the changeset viewer.