Changeset 297 for trunk/email2trac.py.in
- Timestamp:
- 01/07/10 16:49:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r296 r297 42 42 project : /data/trac/test # REQUIRED 43 43 debug : 1 # OPTIONAL, if set print some DEBUG info 44 trac_version : 0. 9# OPTIONAL, default is 0.1144 trac_version : 0.10 # OPTIONAL, default is 0.11 45 45 46 46 [jouvin] # OPTIONAL project declaration, if set both fields necessary … … 261 261 self.IGNORE_TRAC_USER_SETTINGS = 0 262 262 263 if parameters.has_key('subject_field_separator'): 264 self.SUBJECT_FIELD_SEPARATOR = parameters['subject_field_separator'].strip() 265 else: 266 self.SUBJECT_FIELD_SEPARATOR = '&' 267 263 268 def spam(self, message): 264 269 """ … … 516 521 """ 517 522 518 fields = string.split(s, ',')523 fields = string.split(s, self.SUBJECT_FIELD_SEPARATOR) 519 524 520 525 result = dict() … … 534 539 except ValueError: 535 540 pass 536 537 541 return result 538 542
Note: See TracChangeset
for help on using the changeset viewer.