Changeset 316 for trunk/email2trac.py.in


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.