Changeset 222


Ignore:
Timestamp:
10/10/08 15:10:32 (15 years ago)
Author:
bas
Message:

email2trac.py.in, email2trac.conf:

  • added alternate_notify_template_update. Notify template for ticket updates
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.conf

    r211 r222  
    88umask: 022
    99email_header: 0
    10 trac_version: 0.10
     10trac_version: 0.11
    1111enable_syslog : 1
    1212alternate_notify_template :
     13alternate_notify_template_update :
    1314drop_spam : 0
    1415verbatim_format: 1
     
    1718strip_quotes: 0
    1819ignore_trac_user_settings: 0
     20black_list: MAILER-DAEMON@
    1921
    2022
  • trunk/email2trac.py.in

    r221 r222  
    194194                        self.notify_template = None
    195195
     196                if parameters.has_key('alternate_notify_template_update'):
     197                        self.notify_template_update = str(parameters['alternate_notify_template_update'])
     198                else:
     199                        self.notify_template_update = None
     200
    196201                if parameters.has_key('reply_all'):
    197202                        self.REPLY_ALL = int(parameters['reply_all'])
     
    975980
    976981                        if self.notify_template:
     982
    977983                                if self.VERSION == 0.11:
     984
    978985                                        from trac.web.chrome import Chrome
    979                                         #if not new:
    980                                         #       tn.template_name += ".update"
     986
     987                                        if self.notify_template_update and not new:
     988                                                tn.template_name = self.notify_template_update
     989                                        else:
     990                                                tn.template_name = self.notify_template
     991
    981992                                        tn.template = Chrome(tn.env).load_template(tn.template_name, method='text')
    982993                                               
    983994                                else:
     995
    984996                                        tn.template_name = self.notify_template;
    985997
Note: See TracChangeset for help on using the changeset viewer.