[Tickets #1419] NEW: Forward of DSN message fails: Call to a member
function on a non-object in imp/lib/MIME/Contents.php line 399
bugs at bugs.horde.org
bugs at bugs.horde.org
Mon Feb 21 01:05:38 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1419
-----------------------------------------------------------------------
Ticket | 1419
Created By | roel at bouwman.net
Summary | Forward of DSN message fails: Call to a member function on a non-object in imp/lib/MIME/Contents.php line 399
Queue | IMP
Version | 4.0.2
State | Unconfirmed
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
roel at bouwman.net (2005-02-21 01:05) wrote:
When attempting to forward a message containing a DSN (Delivery Status
Notification) the following error is returned:
Fatal error: Call to a member function on a non-object in
/data/www/webmail-new.townqsp.nl/www/horde/imp/lib/MIME/Contents.php on line
399.
The relevant code:
398 $mime_part = &$this->getMIMEPart($id);
399 $mime_part->setContents($this->getBodyPart($id));
400 $this->_message->alterPart($id, $mime_part);
It seems that getMIMEPart does not return an object in this instance.
Unfortunately,
the function is undocumented. Adding "if (is_object($mime_part))" before the
second
line does resolve this issue. However, I can not assess the entire impact of
this change.
Regards,
Roel Bouwman.
More information about the bugs
mailing list