Opened 8 years ago
Last modified 8 years ago
#12710 closed defect
refactored? mail2trac/utils.py doesn't like attachments without filenames — at Initial Version
| Reported by: | anonymous | Owned by: | Olivier ANDRE |
|---|---|---|---|
| Priority: | normal | Component: | MailToTracPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
Description
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.
Note: See
TracTickets for help on using
tickets.


