[Tickets #9245] Re: MIME type of application/octet-stream attachments is no longer guessed

bugs at horde.org bugs at horde.org
Fri Sep 10 17:31:00 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9245
------------------------------------------------------------------------------
  Ticket             | 9245
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | MIME type of application/octet-stream attachments is no
                     | longer guessed
  Queue              | IMP
  Version            | Git master
  Type               | Bug
-State              | Assigned
+State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2010-09-10 13:31) wrote:

For compose attachments?  Yes we do, in the compose_attach hook.

For message attachments?  Yes we do, in IMP_Contents::getSummary().   
Although we only do filename guessing - it is too expensive for us to  
have to download the entire contents of a potentially very large file  
from the IMAP server to do a fileinfo-type guess.  Although I guess we  
could now leverage the power of the IMAP server and only download a  
certain portion of the file (i.e. first 1000 bytes) to do fileinfo  
guessing, although I don't know enough about the heuristics to know if  
it only does scanning at the beginning of data.






More information about the bugs mailing list