6.0.0-beta1
8/10/25

[#1419] Forward of DSN message fails: Call to a member function on a non-object in imp/lib/MIME/Contents.php line 399
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
Queue Version 4.0.2
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester roel (at) bouwman (dot) net
Created 02/21/2005 (7475 days ago)
Due
Updated 02/21/2005 (7475 days ago)
Assigned
Resolved 02/21/2005 (7475 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/21/2005 09:10:35 AM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
This has already been fixed and will be in 4.0.3.
02/21/2005 09:05:38 AM roel (at) bouwman (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
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
Reply to this comment
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.

Saved Queries