Changeset 239


Ignore:
Timestamp:
12/18/08 22:48:25 (13 years ago)
Author:
bromine
Message:

email2trac.py.in:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r238 r239  
    848848
    849849                m = email.message_from_file(fp)
     850               
    850851                if not m:
    851852                        if self.DEBUG:
    852853                                print "This is not a valid email message format"
    853854                        return
     855                       
     856                print repr(m['Subject'])
     857
     858                # Work around lack of header folding in Python; see http://bugs.python.org/issue4696
     859                m.replace_header('Subject', m['Subject'].replace('\r', '').replace('\n', ''))
    854860
    855861                if self.DEBUG > 1:        # save the entire e-mail message text
Note: See TracChangeset for help on using the changeset viewer.