6.0.0-beta1
7/28/25

[#2070] IMP fails showing MIME Mails if some MIME type is unknown
Summary IMP fails showing MIME Mails if some MIME type is unknown
Queue Horde Framework Packages
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester thomas (at) gelf (dot) net
Created 06/02/2005 (7361 days ago)
Due
Updated 07/11/2005 (7322 days ago)
Assigned 06/02/2005 (7361 days ago)
Resolved 07/11/2005 (7322 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/11/2005 10:18:41 AM Jan Schneider Comment #6
State ⇒ Not A Bug
Reply to this comment
No feedback.
06/04/2005 06:36:33 AM Michael Slusarz Comment #5 Reply to this comment
This does make no sense.  MIME_Viewer *always* falls back to the 
default driver if no specific driver is available that matches the 
MIME type.  If the default driver is failing to load, there is either 
an issue with your local copy of the horde files or you have an error 
in your config/mime_drivers.php file.  Are you sure you do not have a 
parse error somewhere that is causing this issue?
06/02/2005 10:55:29 PM thomas (at) gelf (dot) net Comment #4 Reply to this comment
Error msg:

Fatal error: Call to a member function on a non-object in 
/usr/share/php/Horde/MIME/Contents.php on line 438



This error is from canDisplayInline(), the problem is that



     $viewer = &$this->getMIMEViewer($mime_part);



probably returns just "false" and not a MIME_Viewer Object if mimetype 
is unknown.



Example attachment causing this error:



mime_part Object:

     [_type] => audio

     [_subtype] => x-wav

     [_description] => Voicemail sound attachment.

     ...



My patch adds a check for this and also fixes partSummary() - the same 
problem occurs there when



     $viewer->getIcon()



is called.



Cheers,

Thomas Gelf
06/02/2005 10:16:59 PM Chuck Hagenbuch Comment #3
State ⇒ Feedback
Reply to this comment
Can you be specific about the error message you get, and what 
conditions can cause it to occur? I've never seen this, and the way 
you describe it that makes no sense.
06/02/2005 03:40:41 PM thomas (at) gelf (dot) net Comment #2
New Attachment: missing_MIME_Viewer_check[1].diff Download
Reply to this comment
Sorry,  wrong direction
06/02/2005 03:37:56 PM thomas (at) gelf (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ IMP fails showing MIME Mails if some MIME type is unknown
Queue ⇒ Horde Framework Packages
New Attachment: missing_MIME_Viewer_check.diff Download
Reply to this comment
Little issue with imp (head): accessing some MIME mails fails (happens 
with "unknown" MIME types) - I tracked the error down to 
MIME/Contents.php & MIME/Viewer.php:



if getMIMEViewer() doesn't return a valid "MIME_Viewer" the functions 
canDisplayInline() and partSummary() don't care and going on they 
produce an error (as a boolean of course doesn't "contain" functions 
as getIcon() and forceInlineView())



Yours sincerly,

Thomas Gelf


Saved Queries