Changeset 183


Ignore:
Timestamp:
07/18/07 10:55:04 (14 years ago)
Author:
bas
Message:

email2trac.py.in:

  • Renamed a variable self.email_field to self.email_from
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r182 r183  
    135135                self.author = None
    136136                self.email_addr = None
    137                 self.email_field = None
     137                self.email_from = None
    138138
    139139                self.VERSION = version
     
    348348
    349349                if len(users) == 1:
    350                         self.email_field = users[0]
    351                 else:
    352                         self.email_field =  self.email_to_unicode(message['from'])
    353                         #self.email_field =  self.email_to_unicode(self.email_addr)
     350                        self.email_from = users[0]
     351                else:
     352                        self.email_from =  self.email_to_unicode(message['from'])
     353                        #self.email_from =  self.email_to_unicode(self.email_addr)
    354354
    355355        def set_reply_fields(self, ticket, message):
     
    357357                Set all the right fields for a new ticket
    358358                """
    359                 ticket['reporter'] = self.email_field
     359                ticket['reporter'] = self.email_from
    360360
    361361                # Put all CC-addresses in ticket CC field
Note: See TracChangeset for help on using the changeset viewer.