Changeset 563


Ignore:
Timestamp:
08/22/11 10:00:46 (9 years ago)
Author:
bas
Message:

fixed unicode error when printing subject line. Python logging module problem, closes #267

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r557 r563  
    7070    Reported by: Sergey V.Levin <slevin add adriver dot ru >
    7171    Fixed by: Bas van der Vlies & Sergey V.Levin
     72
     73  * Replaced printing of subject line to repr() instead of unicode string.
     74    Some versions if python logging module could crash, closes #267
     75    Reported by: hju add jochenkuhl dot de
     76    Fixed by: Bas van der Vlies
    7277   
    73782.1.0 (2011-6-6)
  • trunk/debian/changelog

    r557 r563  
     1email2trac (2.4.0-4) stable; urgency=low
     2
     3  * See Changelog, fixed unicode subject problems
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Mon, 22 Aug 2011 09:59:11 +0200
     6
    17email2trac (2.4.0-3) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r561 r563  
    16351635            subject  = 'No Subject'
    16361636        else:
    1637             subject  = self.email_to_unicode(m['Subject'])
     1637            ## Bug in python logging module <2.6
     1638            #subject  = self.email_to_unicode(m['Subject'])
     1639            subject  = repr(m['Subject'])
    16381640
    16391641        self.logger.info('subject: %s' %subject)
     
    22712273    (torcpts, ccrcpts) = self.get_recipients(resid)
    22722274
    2273     #print torcpts, ccrcpts, sender_email
     2275    print torcpts, ccrcpts, sender_email
    22742276
    22752277    if not tktparser.email_header_acl('notify_reporter_black_list', sender_email, False):
Note: See TracChangeset for help on using the changeset viewer.