Changeset 148 for emailtotracscript
- Timestamp:
- 02/06/07 14:18:12 (16 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/email2trac.conf
r138 r148 15 15 verbatim_format: 1 16 16 strip_signature: 1 17 use_textwrap: 70 17 18 18 19 -
emailtotracscript/trunk/email2trac.py.in
r146 r148 58 58 mailto_cc : basv@sara.nl # OPTIONAL, use this address as CC in mailto line 59 59 ticket_update: 1 # OPTIONAL, if set then check if this is an update for a ticket 60 trac_version : 0.8 # OPTIONAL, default is 0. 961 62 [jouvin] 60 trac_version : 0.8 # OPTIONAL, default is 0.10 61 62 [jouvin] # OPTIONAL project declaration, if set both fields necessary 63 63 project : /data/trac/jouvin # use -p|--project jouvin. 64 64 … … 182 182 self.STRIP_SIGNATURE = 0 183 183 184 if parameters.has_key('use_textwrap'): 185 self.USE_TEXTWRAP = int(parameters['use_textwrap']) 186 else: 187 self.USE_TEXTWRAP = 0 188 184 189 # X-Spam-Score: *** (3.255) BAYES_50,DNS_FROM_AHBL_RHSBL,HTML_ 185 190 # Note if Spam_level then '*' are included … … 556 561 if self.STRIP_SIGNATURE: 557 562 body_text = self.strip_signature(body_text) 563 564 565 if self.USE_TEXTWRAP: 566 import textwrap 567 body_text = textwrap.fill( body_text, 568 width = self.USE_TEXTWRAP, 569 replace_whitespace = False ) 558 570 559 571 # Get contents charset (iso-8859-15 if not defined in mail headers)
Note: See TracChangeset
for help on using the changeset viewer.