Changeset 143


Ignore:
Timestamp:
12/06/06 11:07:45 (15 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • self.self does not work, fixed it
  • re-arranged author stuff
Location:
emailtotracscript/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/debian/control

    r49 r143  
    99Section: misc
    1010Architecture: i386
     11Maintainer: Bas van der Vlies <bas@sara.nl>
    1112Depends: ${slibs:Depends}, python, cdbs, trac
    1213Description: Converts email to a trac ticket
  • emailtotracscript/trunk/email2trac.py.in

    r142 r143  
    290290                Get the default author name and email address from the message
    291291                """
    292                 self.author, self.email_addr  = email.Utils.parseaddr(message['from'])
    293 
    294                 self.author = self.email_to_unicode(self.author)
    295                 #self.author = self.author.encode('utf-8', 'replace')
     292                temp = self.email_to_unicode(message['from'])
     293                #print temp.encode('utf-8')
     294
     295                self.author, self.email_addr  = email.Utils.parseaddr(temp)
     296                #print self.author.encode('utf-8', 'replace')
    296297
    297298                # Look for email address in registered trac users
     
    629630        def html_mailto_link(self, subject, id, body):
    630631                if not self.author:
    631                         author = self.self.email_addr
     632                        author = self.email_addr
    632633                else:   
    633634                        author = self.author
Note: See TracChangeset for help on using the changeset viewer.