Changeset 40


Ignore:
Timestamp:
01/24/06 23:54:36 (18 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Use fullname for reporter if exitst else use email addr


File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/email2trac.py.in

    r39 r40  
    284284
    285285                author, email_addr  = email.Utils.parseaddr(msg['from'])
    286                 from_str = self.to_unicode(msg['from'])
    287                 tkt['reporter'] = from_str
     286                email_str = self.to_unicode(email_addr)
     287                if author:
     288                        tkt['reporter'] = self.to_unicode(author)
     289                else
     290                        tkt['reporter'] = self.to_unicode(email_str)
     291
    288292                if self.CC:
    289                         tkt['cc'] = email_addr
     293                        tkt['cc'] = email_str
    290294
    291295# produce e-mail like header
Note: See TracChangeset for help on using the changeset viewer.