Changeset 242 for trunk/email2trac.py.in
- Timestamp:
- 01/16/09 14:48:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r241 r242 1120 1120 filename = 'untitled-part' 1121 1121 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) 1124 1127 if not ext: 1125 1128 ext = '.bin' … … 1308 1311 # Insert the attachment 1309 1312 # 1310 fd = open(path )1313 fd = open(path, 'rb') 1311 1314 att = attachment.Attachment(self.env, 'ticket', ticket['id']) 1312 1315
Note: See TracChangeset
for help on using the changeset viewer.