Changeset 242


Ignore:
Timestamp:
01/16/09 14:48:48 (13 years ago)
Author:
bas
Message:

email2trac.py.in:

  • closes #93, 110 problems with window attachements
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r241 r242  
    2323  * More versatile support for Mac attachments. closes #106
    2424    Author: ben at fetchsoftworks dot com
     25
     26  * Applied an patch that solve problems with Window attachments, closes #110,#93
     27    Author: martin.poeschmann add eiskonzept dot com   
     28    Applied by: Bas van der Vlies
    2529
    26302008-10-13
  • trunk/email2trac.py.in

    r241 r242  
    11201120                                filename = 'untitled-part'
    11211121
    1122                                 # Guess the extension from the content type
    1123                                 ext = mimetypes.guess_extension(part.get_content_type())
     1122                                # Guess the extension from the content type, use non strict mode
     1123                                # some additional non-standard but commonly used MIME types
     1124                                # are also recognized
     1125                                #
     1126                                ext = mimetypes.guess_extension(part.get_content_type(), False)
    11241127                                if not ext:
    11251128                                        ext = '.bin'
     
    13081311                        # Insert the attachment
    13091312                        #
    1310                         fd = open(path)
     1313                        fd = open(path, 'rb')
    13111314                        att = attachment.Attachment(self.env, 'ticket', ticket['id'])
    13121315
Note: See TracChangeset for help on using the changeset viewer.