Changeset 304
- Timestamp:
- 01/11/10 15:54:50 (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r303 r304 52 52 - For a new ticket and reply_all is set. 53 53 - If the ticket CC field is updated via the subject line. 54 55 Also prevent setting the reporter address to the ticket email 56 address. 57 54 58 closes #172 55 59 Reported by: otto at bergerdata dot de -
trunk/debian/changelog
r303 r304 53 53 - For a new ticket and reply_all is set. 54 54 - If the ticket CC field is updated via the subject line. 55 56 Also prevent setting the reporter address to the ticket email 57 address. 58 55 59 closes #172 56 60 Reported by: otto at bergerdata dot de -
trunk/email2trac.py.in
r301 r304 441 441 self.email_name, self.email_addr = email.Utils.parseaddr(self.email_from) 442 442 443 # Trac can not handle author's name that contains spaces 444 # 445 self.author = self.email_addr 443 ## Trac can not handle author's name that contains spaces 444 # and forbid the ticket email address as author field 445 446 if self.author == self.trac_smtp_from: 447 self.author = "email2trac" 448 else: 449 self.author = self.email_addr 446 450 447 451 if self.IGNORE_TRAC_USER_SETTINGS: … … 500 504 pass 501 505 502 ## This address is forbidden for CC-field, cuases mail-loop503 #504 smtp_from = self.get_config('notification', 'smtp_from')505 506 506 for name,addr in cc_addrs: 507 507 … … 509 509 # 510 510 #if addr in to_list: 511 if addr == smtp_from: 511 512 if addr == self.trac_smtp_from: 512 513 if self.DEBUG: 513 514 print "Skipping %s mail address for CC-field" %(addr) … … 604 605 if field == 'cc': 605 606 606 smtp_from = self.get_config('notification', 'smtp_from')607 608 607 cc_list = user_dict['cc'].split(',') 609 608 610 if s mtp_from in cc_list:609 if self.trac_smtp_from in cc_list: 611 610 if self.DEBUG > 10: 612 print 'TD: MAIL LOOP: %s is not allowed as CC address' %(s mtp_from)613 cc_list.remove(s mtp_from)611 print 'TD: MAIL LOOP: %s is not allowed as CC address' %(self.trac_smtp_from) 612 cc_list.remove(self.trac_smtp_from) 614 613 615 614 value = ','.join(cc_list) … … 1000 999 else: 1001 1000 self.notification = 0 1001 1002 self.trac_smtp_from = self.get_config('notification', 'smtp_from') 1002 1003 1003 1004 # Check if FullBlogPlugin is installed
Note: See TracChangeset
for help on using the changeset viewer.