Ignore:
Timestamp:
11/23/06 14:18:24 (17 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in, email2trac.conf:

  • Added verbatim_format parameter. default is 1 then use ' .... ' syntax for body text else use raw format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/email2trac.py.in

    r131 r134  
    171171                        self.DROP_SPAM = 0
    172172
     173                if parameters.has_key('verbatim_format'):
     174                        self.VERBATIM_FORMAT = int(parameters['verbatim_format'])
     175                else:
     176                        self.VERBATIM_FORMAT = 1
     177
    173178
    174179        # X-Spam-Score: *** (3.255) BAYES_50,DNS_FROM_AHBL_RHSBL,HTML_
     
    562567                        ubody_text = ubody_text.encode('utf-8')
    563568
    564                 ubody_text = '{{{\r\n%s\r\n}}}' %ubody_text
     569                if self.VERBATIM_FORMAT:
     570                        ubody_text = '{{{\r\n%s\r\n}}}' %ubody_text
     571                else:
     572                        ubody_text = '%s' %ubody_text
     573
    565574                return ubody_text
    566575
Note: See TracChangeset for help on using the changeset viewer.