Changeset 462 for trunk/email2trac.py.in


Ignore:
Timestamp:
07/26/10 10:09:40 (14 years ago)
Author:
bas
Message:

Fixed an Unicode error in strip_quotes and update versions info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r456 r462  
    15471547                Strip signature from message, inspired by Mailman software
    15481548                """
     1549                self.logger.debug('function strip_signature')
     1550
    15491551                body = []
    15501552                for line in text.splitlines():
     
    15961598                Strip quotes from message by Nicolas Mendoza
    15971599                """
     1600                self.logger.debug('function strip_quotes')
     1601
    15981602                body = []
    15991603                for line in text.splitlines():
    1600                         if line.startswith(self.parameters.email_quote):
    1601                                 continue
     1604                        try:
     1605
     1606                                if line.startswith(self.parameters.email_quote):
     1607                                        continue
     1608
     1609                        except UnicodeDecodeError:
     1610
     1611                                tmp_line = self.email_to_unicode(line)
     1612                                if tmp_line.startswith(self.parameters.email_quote):
     1613                                        continue
     1614                               
    16021615                        body.append(line)
    16031616
Note: See TracChangeset for help on using the changeset viewer.