6.0.0-beta1
7/5/25

[#9245] MIME type of application/octet-stream attachments is no longer guessed
Summary MIME type of application/octet-stream attachments is no longer guessed
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 09/09/2010 (5413 days ago)
Due
Updated 09/13/2010 (5409 days ago)
Assigned 09/12/2010 (5410 days ago)
Resolved 09/13/2010 (5409 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/13/2010 07:09:49 AM Michael Slusarz State ⇒ Resolved
 
09/13/2010 07:09:06 AM Git Commit Comment #5 Reply to this comment
09/12/2010 04:30:36 PM Jan Schneider Comment #4
State ⇒ Assigned
Reply to this comment
Chuck's commit c29f138bb9e84f6a73b85e3f1dd5cd451b2ddf1b fixed the mime 
type detection, but those files are still not linked for viewing 
through Horde_Mime_Viewer.
09/11/2010 12:07:09 AM Jan Schneider Comment #3 Reply to this comment
I meant for message attachments. I have the same message in both IMP 4 
and 5. It has 3 attachments (1 PDF, 2 iCalendar) as 
application/octet-stream but they are only displayed as PDF and 
iCalendar attachments in IMP 4.
09/10/2010 05:31:00 PM Michael Slusarz Comment #2
State ⇒ Feedback
Reply to this comment
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.
09/09/2010 10:46:54 PM Jan Schneider Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ MIME type of application/octet-stream attachments is no longer guessed
Queue ⇒ IMP
Assigned to Michael Slusarz
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
Reply to this comment
.

Saved Queries