#013329: ezcMail fetchParts() generates an error when parsing a mail with an empty body

Description:

The following error is received:


Fatal error: Argument 2 passed to ezcMail::walkParts() must not be  
null, called in /usr/include/php/ezcomponents-2007.2.1/Mail/src/ 
mail.php on line 438 and defined in /usr/include/php/ 
ezcomponents-2007.2.1/Mail/src/mail.php on line 430

when calling $mail->fetchParts() after parsing a mail with an empty body:


Received: (qmail 27779 invoked from network); 5 Jul 2008 17:02:35 -0400
Received: from mailgate1.domain.com (HELO domain.com) (xx.xxx.xx.xxx)
  by mydomain.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 5 Jul 2008  
17:02:35 -0400
Received-SPF: pass (mydomain.com: local policy designates  
xx.xxx.xx.xxx as permitted sender)
Received: from ([12.165.36.249])
    by mailgate1.domain.com with ESMTP  id KP-BPZGN.208254597;
    Sat, 05 Jul 2008 17:02:15 -0400
Subject: Yes
From: jcscates@domain.com
Date: Sat, 5 Jul 2008 17:02:19 -0400
To: sub.4dbd248a@mydomain.com
Importance: Normal
Message-ID: <OF10DA4E02.450C9DFC-ON8525747D.007391CC@domain.com>
X-MIMETrack: Serialize by Router on ETCSPLNG103/MAIL/CCE(Release 7.0.3| 
September 26, 2007) at
07/05/2008 05:02:22 PM
MIME-Version: 1.0

because $mail->body is null in this case.


Environment:

Operating System:
PHP Version: any
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed in SVN rev. 8564. It will be available in Mail 1.5.1.

#257381 by Alexandru Stanoi on July 10th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Mail
Affects 2007.1 - eZ components 2007.1
2008.1 - eZ components 2008.1
1.5 - Mail 1.5
Fix Version -
Reporter Alexandru Stanoi
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Fixed
Created July 10th, 2008
Updated July 10th, 2008
Resolved July 10th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels