Changeset 129


Ignore:
Timestamp:
10/20/06 13:12:16 (18 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • See Changelog
Location:
emailtotracscript/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/ChangeLog

    r128 r129  
    112006-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
    322          an exception in the syslog if we use sys.exit(0), replaced by
    423          return.
    524          Fixed    by:  Bas van der Vlies
    625
    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.
    1729          Fixed    by:  Bas van der Vlies
    1830       
  • emailtotracscript/trunk/debian/changelog

    r128 r129  
     1email2trac (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
    19email2trac (0.8.1-5) stable; urgency=low
    210
  • emailtotracscript/trunk/email2trac.py.in

    r126 r129  
    380380                        tkt['id'] = ticket_id
    381381
    382                 self.attachments(m, tkt)
     382                if self.VERSION  == 0.9:
     383                        self.attachments(m, tkt, True)
     384                else:
     385                        self.attachments(m, tkt)
    383386
    384387                if self.notification:
     
    612615                return str
    613616
    614         def attachments(self, message, ticket):
     617        def attachments(self, message, ticket, update=False):
    615618                '''
    616619                save any attachments as files in the ticket's directory
     
    698701                                fd = open(path)
    699702                                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
    702711                                att.insert(url_filename, fd, filesize)
    703712                                fd.close()
Note: See TracChangeset for help on using the changeset viewer.