Changeset 213 for trunk/email2trac.py.in
- Timestamp:
- 07/11/08 16:55:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.