Modify

Opened 13 years ago

Closed 13 years ago

#93 closed setup (duplicate)

Attachments are added to tickets, but are broken

Reported by: planktr@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: trunk
Keywords: Cc: cc@…

Description

I have email2trac working on a Windows server using fetchmail+Cygwin. I have also had luck with GetMail?. Messages are being retrieved from Exchange 2003 server. I've tried using POP3 and IMAP. With either tool, attachments are being created on the tickets, but they don't open. For example, an image attachment is added to the ticket, but when clicked on, the file appears as a broken image. In the trac attachments folder, there are image files that are of the expected size, but they don't open.

Is there a configuration setting that would impact this?

When using GetMail?, i enabled the extract option and the attachments were stored separately, so i assume the attachments are arriving with the messages, it just seems like they aren't making it through the email2trac script.

Any ideas?

Attachments (0)

Change History (6)

comment:1 Changed 13 years ago by cc@…

  • Cc cc@… added

Our office has been using email2trac 0.30 in Windows Server 2003 using Windows built-in SMTP. We've been having the very same issue.

Broken attachments based on our testing:

  • Any type of Office document (xls and doc, Office11)
  • Image files (jpeg, png)
  • Archives (zip, 7z)

Plain text documents do work, so we're not sure if the issue lies in the way Exchange is giving us binary attachments or in the way email2trac handles them.

comment:2 Changed 13 years ago by liana@…

Hi

We have the same problem with broken attachments. Using Windows Server 2003 and fetchmail.

Not sure if it has to do with the charset.

comment:3 follow-up: Changed 13 years ago by martin.poeschmann@…

I found a solution for this problem. The attachment is opened as text file not as binary file. Maybe it works for linux this way, but for windows, the code has to be changed. The Ticket (#110) contains a fix which works for me, but i am not a python-programer.

comment:4 Changed 13 years ago by cc@…

This is the author of comment:1. Martin, your suggestion from ticket #110 has done the trick for us. Binary attachments are now working correctly. Thanks for the fix!

comment:5 in reply to: ↑ 3 Changed 13 years ago by planktr@…

Replying to martin.poeschmann@eiskonzept.com:

I found a solution for this problem. The attachment is opened as text file not as binary file. Maybe it works for linux this way, but for windows, the code has to be changed. The Ticket (#110) contains a fix which works for me, but i am not a python-programer.

Bingo! This code change worked for me also. I have no idea what it does, but attachments are being added intact now that I have added the changes. By the way, now that I know it's working, I can say that using GetMail? for Windows (http://pages.interlog.com/~tcharron/getmail.html) is working for me and doesn't require cygwin.

comment:6 Changed 13 years ago by bas

  • Resolution set to duplicate
  • Status changed from new to closed
  • Version set to trunk

applied patch #110

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.