Changeset 89


Ignore:
Timestamp:
06/26/06 10:01:47 (16 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

Location:
emailtotracscript/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/ChangeLog

    r88 r89  
    44          Fixed by: Walter de Jong en Bas van der Vlies
    55
    6         - Added enable_syslog option. If enabled log errors
    7           to syslog instead of stderr. If enabled no errors are
    8           send back to the user.
     6        - Added enable_syslog option. If enabled log errors to syslog
     7          instead of stderr. If enabled no errors are send back to the
     8          user.
    99          Implemented by: Bas van der Vlies
    1010
     
    1616        - Fixed and spell error, self.mail_addr must be self.email_addr
    1717          Fixed by: Bas van der Vlies
    18          
     18
     19        - Catch a LookupError in unicode/encode conversion
     20          Fixed by: Bas van der Vlies
    1921
    20222006-06-02
  • emailtotracscript/trunk/debian/changelog

    r88 r89  
     1email2trac (0.7.3-4) stable; urgency=low
     2
     3  * Fixed a LookupError 
     4
     5 -- root <basv@sara.nl>  Mon, 26 Jun 2006 09:58:07 +0200
     6
    17email2trac (0.7.3-3) stable; urgency=low
    28
  • emailtotracscript/trunk/email2trac.py.in

    r88 r89  
    497497                                #
    498498                                charset = part.get_content_charset('iso-8859-15')
    499                                 ubody_text = unicode(body_text, charset).encode('utf-8')
     499
     500                                try:
     501                                        temp = unicode(body_text, charset)
     502                                except (UnicodeError,LookupError):
     503                                        temp = unicode(body_text, 'iso-8859-15')
     504
     505                                #ubody_text = unicode(body_text, charset).encode('utf-8')
     506                                ubody_text = temp.encode('utf-8')
    500507
    501508                        elif part.get_content_type() == 'text/html':
Note: See TracChangeset for help on using the changeset viewer.