[Tickets #2070] IMP fails showing MIME Mails if some MIME type is unknown
bugs@bugs.horde.org
bugs at bugs.horde.org
Thu Jun 2 15:55:31 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=2070
-----------------------------------------------------------------------
Ticket | 2070
Updated By | thomas at gelf.net
Summary | IMP fails showing MIME Mails if some MIME type is unknown
Queue | Horde Framework Packages
State | Feedback
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
thomas at gelf.net (2005-06-02 15:55) wrote:
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
More information about the bugs
mailing list