Changeset 141


Ignore:
Timestamp:
12/04/06 18:38:31 (16 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Fixed some more unicode bug, str + unicode object also failed if non-ascii char in unicode object
Location:
emailtotracscript/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/ChangeLog

    r139 r141  
    1111            charset must be installed in ticket description. Else we
    1212            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.
    1317          Fixed by: Bas van der Vlies
    1418
  • emailtotracscript/trunk/email2trac.py.in

    r140 r141  
    452452
    453453                tkt['description'] = '\r\n%s\r\n%s' \
    454                         %(head, body_text)
     454                        %(head, body_text.decode('utf-8'))
    455455
    456456                when = int(time.time())
     
    470470                        comment = '\nadded mailto line\n'
    471471                        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'))
    473474
    474475                n =  self.attachments(msg, tkt)
Note: See TracChangeset for help on using the changeset viewer.