Changeset 109 for emailtotracscript/trunk/email2trac.py.in
- Timestamp:
- 09/29/06 09:27:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/email2trac.py.in
r108 r109 353 353 354 354 body_text = self.get_body_text(m) 355 body_text = '{{{\n%s\n}}}' %body_text356 355 357 356 # Strip '#' and ':' from ticket_id … … 425 424 body_text = self.get_body_text(msg) 426 425 427 tkt['description'] = 'email2trac:%s\r\n {{{\r\n%s\r\n}}}' \426 tkt['description'] = 'email2trac:%s\r\n%s' \ 428 427 %(head, body_text) 429 428 … … 444 443 comment = '\nadded mailto line\n' 445 444 mailto = self.html_mailto_link(self.to_unicode(msg['subject']), ticket_id, body_text) 446 tkt['description'] = 'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text) 445 #tkt['description'] = 'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text) 446 tkt['description'] = 'email2trac:%s%s\r\n%s' %(head, mailto, body_text) 447 447 448 448 n = self.attachments(msg, tkt) … … 497 497 has_description = 0 498 498 encoding = True 499 ubody_text = u' \r\n{{{\nNo plain text message\n}}}\r\n'499 ubody_text = u'No plain text message' 500 500 for part in msg.walk(): 501 501 … … 529 529 530 530 elif part.get_content_type() == 'text/html': 531 ubody_text = ' \r\n(see attachment for HTML mail message)\r\n'531 ubody_text = '(see attachment for HTML mail message)' 532 532 533 533 else: 534 ubody_text = ' \r\n(see attachment for message)\r\n'534 ubody_text = '(see attachment for message)' 535 535 536 536 has_description = 1 … … 538 538 539 539 if not has_description: 540 ubody_text = ' \r\n(see attachment for message)\r\n'540 ubody_text = '(see attachment for message)' 541 541 542 542 # A patch so that the web-interface will not update the description … … 551 551 ubody_text = ubody_text.encode('utf-8') 552 552 553 ubody_text = '{{{\r\n%s\r\n}}}' %ubody_text 553 554 return ubody_text 554 555
Note: See TracChangeset
for help on using the changeset viewer.