Modify ↓
Opened 9 years ago
Closed 9 years ago
#12710 closed defect (worksforme)
refactored? mail2trac/utils.py doesn't like attachments without filenames
Reported by: | anonymous | Owned by: | Olivier ANDRE |
---|---|---|---|
Priority: | normal | Component: | MailToTracPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description (last modified by )
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.
Attachments (0)
Change History (3)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 9 years ago by
comment:3 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Feel free to reopen if you can provide more details. I can't make sense of the ticket with the current information.
Note: See
TracTickets for help on using
tickets.
I guess you intended to post a diff? What version of Trac?