Changeset 462


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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r458 r462  
     12010-07-26
     2    * Fixed an Unicode error in strip_quotes
     3    Author: Bas van der Vlies
     4   
    152010-07-23
    26    * logging of spam message was wrong. Fixed it,
  • trunk/debian/changelog

    r457 r462  
     1email2trac (1.5.3-1) stable; urgency=low
     2
     3  * See ChangeLog
     4
     5 -- bas van der Vlies <basv@sara.nl>  Mon, 26 Jul 2010 10:08:23 +0200
     6
    17email2trac (1.5.2-3) stable; urgency=low
    28
  • 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
  • trunk/email2trac.spec

    r432 r462  
    11Summary: Utilities for converting emails to trac tickets
    22Name: email2trac
    3 Version: 1.5.2
     3Version: 1.5.3
    44Release: 1
    55License: GPL
Note: See TracChangeset for help on using the changeset viewer.