Changeset 129
- Timestamp:
- 10/20/06 13:12:16 (17 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/ChangeLog
r128 r129 1 1 2006-xxxx 2 * Fixed an error if enable_syslog and drop_spam is set. We get 2 3 * run_email2trac.c. 4 5 - Setgid() must be called before setuid(). 6 Reported by: Anonymous 7 Fixed by: Bas van der Vlies 8 9 * email2trac.py, 10 11 - Fixed an error in Ticket Update. When ticket 12 does not exists, proceed as if it is a new ticket 13 Fixed by: Bas van der Vlies 14 15 - Fixed a strang bug in 0.9 version, if ticket update 16 is enabled and email has attachment(s). We are not allowed to 17 set the description and author field of the attachment else 18 the comment text is lost ;-( 19 Fixed by: Bas van der Vlies 20 21 - Fixed an error if enable_syslog and drop_spam is set. We get 3 22 an exception in the syslog if we use sys.exit(0), replaced by 4 23 return. 5 24 Fixed by: Bas van der Vlies 6 25 7 * run_email2trac.c. Setgid() must be called before setuid(). 8 Reported by: Anonymous 9 Fixed by: Bas van der Vlies 10 11 * email2trac.py, Fixed an error in Ticket Update. When ticket 12 does not exists, proceed as if it is a new ticket 13 Fixed by: Bas van der Vlies 14 15 * delete_spam.py. Trac version 0.10 made it easier to delete 16 tickets. 26 * delete_spam.py. 27 28 - Trac version 0.10 made it easier to delete tickets. 17 29 Fixed by: Bas van der Vlies 18 30 -
emailtotracscript/trunk/debian/changelog
r128 r129 1 email2trac (0.8.1-6) stable; urgency=low 2 3 * Fixed a strang bug in 0.9 version, if ticket update and email has 4 attachment we are not allowed to set the description and author 5 field of the attachment else the comment text is lost 6 7 -- root <root@rc.sara.nl> Fri, 20 Oct 2006 13:06:28 +0200 8 1 9 email2trac (0.8.1-5) stable; urgency=low 2 10 -
emailtotracscript/trunk/email2trac.py.in
r126 r129 380 380 tkt['id'] = ticket_id 381 381 382 self.attachments(m, tkt) 382 if self.VERSION == 0.9: 383 self.attachments(m, tkt, True) 384 else: 385 self.attachments(m, tkt) 383 386 384 387 if self.notification: … … 612 615 return str 613 616 614 def attachments(self, message, ticket ):617 def attachments(self, message, ticket, update=False): 615 618 ''' 616 619 save any attachments as files in the ticket's directory … … 698 701 fd = open(path) 699 702 att = attachment.Attachment(self.env, 'ticket', ticket['id']) 700 att.author = self.author 701 att.description = 'Added by email2trac' 703 704 # This will break the ticket_update system, the body_text is vaporized 705 # ;-( 706 # 707 if not update: 708 att.author = self.author 709 att.description = self.to_unicode('Added by email2trac') 710 702 711 att.insert(url_filename, fd, filesize) 703 712 fd.close()
Note: See TracChangeset
for help on using the changeset viewer.