#015341: ezcMailFileParser class function appendStreamFilters not working properly for quoted-printable

Description:

When parsing a quoted-printable email (included as attachment) the code:


preg_match( "/[\r\n|\r|\n]$/", $line, $matches );

Is not finding the /r/n at the end of each line of the quoted-printable attachment. This causes the result to be one line for each line in the quoted-printable instead of the attachement being reassembled into lines as sent in the original email.

The attached test.php illustrates the problem.

The attached data file is a CSV file with each line having 9 fields. The first line should be the header line followed by a number of comma separated data lines.


Environment:

Operating System: Mac OS X 10.5.8
PHP Version: 5.2.8
Database and version: not applicable
Browser (and version): not applicable


Steps to Reproduce:

Edit the test program and change the $filename and the require to point to the correct files.

Run the program from the command line. It will print 3 lines for the header. (should be one line) etc..


- Attachments
test.php (503 b)
[Download] [Permanent Link]
Test program (command line)
090821-1400-1.mail (10.1 mb)
[Download] [Permanent Link]
Mail file.

- Comments

Fixed in SVN rev. 10783.

#262736 by Alexandru Stanoi on August 24th, 2009 [Permanent Link]

I'm new to this. Can you tell me how to look at the corrected code? A link?

#262737 by Richard Williams on August 24th, 2009 [Permanent Link]

http://svn.ezcomponents.org/viewvc.cgi?view=rev&revision=10783url

#262739 by Alexandru Stanoi on August 24th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Mail
Affects Unknown
Fix Versions 2009.2 sprint 2 - eZ components 2009.2 sprint 2
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Richard Williams
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Fixed
Created August 23rd, 2009
Updated August 24th, 2009
Resolved August 24th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels