Changeset 495


Ignore:
Timestamp:
12/20/10 17:10:41 (10 years ago)
Author:
bas
Message:

Attachments without a name will be saved a 'untitled-part'. This used to be so, closes #230

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r493 r495  
    3737
    3838   * Applied a patch so we allow more ticket fields to be used for inline properties, eg:
    39        * @custom_reports: vu
     39       - @custom_reports: vu
    4040     closes #227
    4141     Author: thomas dot moschny add gmx dot de
     
    4747       - Values were updated regardless if there are not allowed for the ticket
    4848             field.
     49     Author: Bas van der Vlies
     50
     51   * Attachments without a name where named 'None' instead of 'untitled-part',
     52     closes #230
     53     Reported by: hju add jochenkuhl dot de
    4954     Author: Bas van der Vlies
    5055
  • trunk/debian/changelog

    r493 r495  
     1email2trac (1.7.0-3) stable; urgency=low
     2
     3  *  See Changelog
     4
     5 -- bas van der Vlies <bas@sara.nl>  Mon, 20 Dec 2010 17:08:59 +0100
     6
    17email2trac (1.7.0-2) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r494 r495  
    18571857        def unique_attachment_names(self, message_parts):
    18581858                """
    1859                 """
     1859            Make sure we have unique names attachments:
     1860                  - check if it contains illegal characters
     1861                  - Rename "None" filenames to "untitled-part"
     1862                """
     1863                self.logger.debug('function unique_attachment_names()')
    18601864                renamed_parts = []
    18611865                attachment_names = set()
     
    18711875                        (filename, part) = item
    18721876
    1873                         ## If no filename, use a default one
    1874                         #
    1875                         if not filename:
     1877                        ## If filename = None, use a default one
     1878                        #
     1879                        if filename in [ 'None']:
    18761880                                filename = 'untitled-part'
     1881                                self.logger.info('Rename filename "None" to: %s' %filename)
    18771882
    18781883                                ## Guess the extension from the content type, use non strict mode
Note: See TracChangeset for help on using the changeset viewer.