Opened 18 years ago
Closed 18 years ago
#1413 closed defect (fixed)
Word documents as attachments can't be open from the ticket (Windows2003)
Reported by: | Owned by: | Bas van der Vlies | |
---|---|---|---|
Priority: | normal | Component: | EmailtoTracScript |
Severity: | blocker | Keywords: | attachment |
Cc: | Trac Release: | 0.10 |
Description
I sent an email with a word document attached. email2trac successfully created the ticket and the attachment. But from trac I am not able to open the attachment as a word document. It tries to open it as "encoded text".
Regards
Attachments (0)
Change History (5)
comment:1 Changed 18 years ago by
Status: | new → assigned |
---|
comment:2 Changed 18 years ago by
Summary: | Word documents as attachments can't be open from the ticket → Word documents as attachments can't be open from the ticket (Windows2003) |
---|
Thanks for the response. I think I found the problem. First of all I missed a very important detail (so sorry about that): I am using email2Trac scrip on a windows 2003 server. Also Trac is running on that server as well. A scheduled batch periodically reads email from the pop server and runs them throug Email2Trac script. There were 2 problems. I patched the script for those.
- Unicode filenames can't be processed. I encoded them to utf-8 that fixed.
- util.create_unique_file was creating text files on NTFS. I used open (...,'wb') and open(...,'rb'). That is also fixes the problem.
Anything else works fine on Windows platform. FYI
Regards
comment:3 Changed 18 years ago by
Can you send me the diff and can you update the wiki page. How to setup email2trac under windows? :-)
If i
comment:5 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I have just tried to send an email with a word attachment and open it in trac without any problems. Trac can not generate a preview you have to download the file:
Maybe yoo have to configure the mime-types for your browser.