Changeset 295


Ignore:
Timestamp:
01/06/10 14:03:06 (11 years ago)
Author:
bas
Message:

email2trac.py.in:

  • fixed an error for new tickets attachments were not saved
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/changelog

    r293 r295  
    2525   Fixed by    : Bas van der Vlies
    2626
     27
     28 * Added a new parameter strip_content_types. So we can strip attachments
     29   based on content type, eg:
     30     * strip_content_types: application/pgp-signature, application/mac-binhex40
     31
     32   Will strip attachments that has these content_types.
     33   Authors:  otto at bergerdata dot de and Bas van der Vlies
     34
    2735 -- Bas van der Vlies <bas@sara.nl>  Thu, 22 Oct 2009 17:47:50 +0200
    2836
  • trunk/email2trac.py.in

    r294 r295  
    829829                        changed = True
    830830
    831                 # Rewrite the description if we have mailto enabled
     831                ## Rewrite the description if we have mailto enabled
    832832                #
    833833                if self.MAILTO:
     
    838838                        tkt['description'] = u'%s\r\n%s%s\r\n' \
    839839                                %(head, mailto, body_text)
    840                
     840       
     841                ## Save the attachments to the ticket   
     842                #
     843                has_attachments =  self.attachments(message_parts)
     844
    841845                #  Disabled
    842                 #has_attachments =  self.attachments(message_parts)
    843846                #if has_attachments:
    844847                #       changed = True
     
    12011204                        if filename:
    12021205                                filename = self.email_to_unicode(filename)                     
     1206
    12031207                        # If no name, use a default one
    12041208                        else:
Note: See TracChangeset for help on using the changeset viewer.