Ticket #446: email2trac1.4.patch

File email2trac1.4.patch, 1.2 KB (added by Sergey V.Levin <slevin@…>, 22 months ago)
  • (a) email2trac-int vs. (b) email2trac

    a b  
    11311131                tkt.save_changes(self.author, body_text, when, None, str(cnum))
    11321132
    11331133        if not spam:
    1134             if self.parameters.use_trac_notification
     1134            if self.parameters.use_trac_notification:
    11351135                # use trac native notification system
    11361136                event = TicketChangeEvent( 'changed', tkt, when, self.author, 'email2trac' )
    11371137                NotificationSystem( self.env ).notify( event )
     
    13971397                tkt.save_changes(tkt['reporter'], comment)
    13981398
    13991399        if not spam:
    1400             if self.parameters.use_trac_notification
     1400            if self.parameters.use_trac_notification:
    14011401                # use trac native notification system
    14021402                event = TicketChangeEvent( 'changed', tkt, when, self.author, 'email2trac' )
    14031403                NotificationSystem( self.env ).notify( event )
     
    29162916
    29172917            settings.use_trac_notification = False
    29182918
    2919         elif version in  [ '1.3', '1.4' ]
     2919        elif version in  [ '1.3', '1.4' ]:
    29202920
    29212921            from trac import attachment
    29222922            from trac import config as trac_config