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 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.

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 9 years ago by Ryan J Ollos

I guess you intended to post a diff? What version of Trac?

comment:3 Changed 9 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Feel free to reopen if you can provide more details. I can't make sense of the ticket with the current information.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Olivier ANDRE.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.