[Tickets #325] MIME types of uploaded attachment files
bugs at bugs.horde.org
bugs at bugs.horde.org
Wed Nov 17 00:39:42 PST 2004
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=325
-----------------------------------------------------------------------
Ticket | 325
Updated By | Michael Slusarz <slusarz at mail.curecanti.org>
Summary | MIME types of uploaded attachment files
Queue | IMP
Version | HEAD
State | Assigned
Priority | 1. Low
Type | Bug
Owners | Horde Developers
-----------------------------------------------------------------------
Michael Slusarz <slusarz at mail.curecanti.org> (2004-11-17 00:39) wrote:
I can confirm that fileinfo will add the 'charset' information for text
parts. I have added code to strip this from the output.
As far as identifying the file as 'text/x-c' rather than 'text/plain', IMHO
this is actually *exactly* why magic is better than file extension checking.
This really is a C file, not a text/plain file, and the fact that IMP has
not been configured to handle text/x-c should not alter this decision.
Just wondering if maybe we should add a text/* viewer in horde that will do
a simple display of a text file in the event that no specific text/foo entry
matches.
More information about the bugs
mailing list