Changeset 509


Ignore:
Timestamp:
01/12/11 10:38:58 (13 years ago)
Author:
bas
Message:

added a new parameter: inline_properties_first_wins, closes #216

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r508 r509  
    7474
    7575   * Added a notifcation function that always send an email to the reporter if
    76      the ticket is updated via email: closes: #178, #229
    77         - always_notify_reporter : 1 (default: 0)
     76     the ticket is updated via email. This independed of trac.ini setting
     77     , closes: #178, #229
     78        - notify_reporter: 1 (default: 0)
    7879        - notify_reporter_black_list : basv@sara.nl (default: 0)
    7980     Author: hju add jochenkuhl dot de
     81     Applied by: Bas van der Vlies
     82
     83 
     84   * Added a new parameter for processing inline properties: (closes #216)
     85       -  inline_properties_first_wins: 1 (default: 0)
     86     
     87     When an email has two of the same inline entries:
     88        {{{
     89        @status: closed
     90        @status: accepted
     91        }}}
     92      Only the first one is used '@status: closed'
     93
     94     Author: Konstantin Ryabitsev <icon add mricon dot com>
    8095     Applied by: Bas van der Vlies
    8196
  • trunk/debian/changelog

    r508 r509  
     1email2trac (2.0.1-3) stable; urgency=low
     2
     3  *  See Changelog
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Wed, 12 Jan 2011 10:37:45 +0100
     6
    17email2trac (2.0.1-2) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r508 r509  
    17541754            if match:
    17551755                keyword, value = match.groups()
     1756
     1757                if self.parameters.inline_properties_first_wins:
     1758                    if keyword in self.properties.keys():
     1759                        continue
     1760
    17561761                self.properties[keyword] = value.strip()
    1757 
    1758                 self.logger.debug('inline properties: %s : %s' %(keyword,value))
     1762                self.logger.debug('\tinline properties: %s : %s' %(keyword,value))
    17591763
    17601764            else:
     
    21112115        self.logger.debug('function notify()')
    21122116
    2113         if self.parameters.always_notify_reporter:
     2117        if self.parameters.notify_reporter:
     2118            self.logger.debug('\t Notify reporter set')
    21142119            global sender_email
    21152120            sender_email = self.email_addr
Note: See TracChangeset for help on using the changeset viewer.