Opened 8 years ago

Last modified 8 years ago

#12710 closed defect

refactored? mail2trac/utils.py doesn't like attachments without filenames — at Version 1

Reported by: anonymous Owned by: Olivier ANDRE
Priority: normal Component: MailToTracPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description (last modified by Ryan J Ollos)

KNOWN_MIME_TYPES and message are not defined:

         size = len(payload)
-        filename = msg.get_filename() or message.get('Subject')
         if not filename:
             filename = 'attachment-%d' % ctr
-            extensions = KNOWN_MIME_TYPES.get(message.get_content_type())

Am working around by setting filenames attachment-1 etc. from the calling code which is what older mail2trac did.

The particular trac installation is a very legacy system for me so I don't need mail2trac to be fixed personally, but I wanted to report the bug anyway.

Change History (1)

comment:1 Changed 8 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.