Changeset 316 for trunk


Ignore:
Timestamp:
02/15/10 11:44:25 (14 years ago)
Author:
bas
Message:

Fixed a bug when there is no subject line, closes #179

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/changelog

    r314 r316  
    1212    Author: samuel at hoffstaetter dot com
    1313    Applied by: Bas van der Vlies
     14
     15  * Fixed a bug when there is no subject line in the message, closes #179
     16    Reported by: xurizaemon
     17    Fixed by: Bas van der Vlies
    1418   
    1519 -- Bas van der Vlies <basv@sara.nl>  Wed, 27 Jan 2010 16:17:41 +0100
  • trunk/email2trac.py.in

    r315 r316  
    994994                       
    995995                # Work around lack of header folding in Python; see http://bugs.python.org/issue4696
    996                 m.replace_header('Subject', m['Subject'].replace('\r', '').replace('\n', ''))
     996                try:
     997                        m.replace_header('Subject', m['Subject'].replace('\r', '').replace('\n', ''))
     998                except AttributeError, detail:
     999                        pass
    9971000
    9981001                if self.DEBUG > 1:        # save the entire e-mail message text
Note: See TracChangeset for help on using the changeset viewer.