Changeset 305 for trunk


Ignore:
Timestamp:
01/11/10 16:09:54 (14 years ago)
Author:
bas
Message:

Prevent mail loops when from address is set, see #172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r304 r305  
    266266                        self.SUBJECT_FIELD_SEPARATOR = '&'
    267267
     268                self.trac_smtp_from = self.get_config('notification', 'smtp_from')
     269
    268270        def spam(self, message):
    269271                """
     
    444446                #  and forbid the ticket email address as author field
    445447
    446                 if self.author == self.trac_smtp_from:
     448                if self.email_addr == self.trac_smtp_from:
    447449                        self.author = "email2trac"
    448450                else:
     
    10001002                        self.notification = 0
    10011003
    1002                 self.trac_smtp_from = self.get_config('notification', 'smtp_from')
    10031004
    10041005                # Check if  FullBlogPlugin is installed
Note: See TracChangeset for help on using the changeset viewer.