Changeset 141
- Timestamp:
- 12/04/06 18:38:31 (17 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/ChangeLog
r139 r141 11 11 charset must be installed in ticket description. Else we 12 12 trac crashed with unicode errors ;-( 13 Fixed by: Bas van der Vlies 14 15 - Fixed statements: str + unicode, raises an exception if 16 non-ascii value in unicode object. 13 17 Fixed by: Bas van der Vlies 14 18 -
emailtotracscript/trunk/email2trac.py.in
r140 r141 452 452 453 453 tkt['description'] = '\r\n%s\r\n%s' \ 454 %(head, body_text )454 %(head, body_text.decode('utf-8')) 455 455 456 456 when = int(time.time()) … … 470 470 comment = '\nadded mailto line\n' 471 471 mailto = self.html_mailto_link(self.email_to_unicode(msg['subject']), ticket_id, body_text) 472 tkt['description'] = 'email2trac:%s%s\r\n%s' %(head, mailto, body_text) 472 tkt['description'] = '\r\n%s%s\r\n%s\r\n' \ 473 %(head, mailto, body_text.decode('utf-8')) 473 474 474 475 n = self.attachments(msg, tkt)
Note: See TracChangeset
for help on using the changeset viewer.