Changeset 138
- Timestamp:
- 12/01/06 15:15:59 (17 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/email2trac.conf
r136 r138 14 14 drop_spam : 0 15 15 verbatim_format: 1 16 strip_signature s: 116 strip_signature: 1 17 17 18 18 -
emailtotracscript/trunk/email2trac.py.in
r136 r138 267 267 str = "%s'''Cc:''' %s [[BR]]" % (str, m['Cc']) 268 268 269 return self.to_unicode(str) 269 #return self.to_unicode(str) 270 return util.text.to_unicode(str) 271 270 272 271 273 def set_owner(self, ticket): … … 298 300 self.email_field = users[0] 299 301 else: 300 self.email_field = self.to_unicode(message['from']) 302 #self.email_field = self.to_unicode(message['from']) 303 self.email_field = util.text.to_unicode(message['from']) 301 304 302 305 def set_reply_fields(self, ticket, message): … … 332 335 333 336 if mail_list: 334 ticket['cc'] = self.to_unicode(mail_list) 337 #ticket['cc'] = self.to_unicode(mail_list) 338 ticket['cc'] = util.text.to_unicode(mail_list) 335 339 336 340 def save_email_for_debug(self, message, tempfile=False): … … 358 362 return False 359 363 else: 360 subject = self.to_unicode(m['Subject']) 364 #subject = self.to_unicode(m['Subject']) 365 subject = util.text.to_unicode(m['Subject']) 361 366 362 367 TICKET_RE = re.compile(r""" … … 418 423 tkt['summary'] = u'(geen subject)' 419 424 else: 420 tkt['summary'] = self.to_unicode(msg['Subject']) 425 #tkt['summary'] = self.to_unicode(msg['Subject']) 426 tkt['summary'] = util.text.to_unicode(msg['Subject']) 421 427 422 428 … … 464 470 changed = True 465 471 comment = '\nadded mailto line\n' 466 mailto = self.html_mailto_link(self.to_unicode(msg['subject']), ticket_id, body_text) 472 #mailto = self.html_mailto_link(self.to_unicode(msg['subject']), ticket_id, body_text) 473 mailto = self.html_mailto_link(util.text.to_unicode(msg['subject']), ticket_id, body_text) 467 474 #tkt['description'] = 'email2trac:%s%s\r\n{{{\r\n%s\r\n}}}' %(head, mailto, body_text) 468 475 tkt['description'] = 'email2trac:%s%s\r\n%s' %(head, mailto, body_text) … … 625 632 author = self.email_addr 626 633 else: 627 author = self.to_unicode(self.author) 634 #author = self.to_unicode(self.author) 635 author = util.text.to_unicode(self.author) 628 636 629 637 # Must find a fix … … 673 681 filename = '%s%s' % (filename, ext) 674 682 else: 675 filename = self.to_unicode(filename) 683 #filename = self.to_unicode(filename) 684 filename = util.text.to_unicode(filename) 676 685 677 686 # From the trac code … … 737 746 if not update: 738 747 att.author = self.author 739 att.description = self.to_unicode('Added by email2trac') 748 #att.description = self.to_unicode('Added by email2trac') 749 att.description = util.text.to_unicode('Added by email2trac') 740 750 741 751 att.insert(url_filename, fd, filesize)
Note: See TracChangeset
for help on using the changeset viewer.