#014776: ezcMailStorageSet generates bad file names

Description:

ezcMailStorageSet tries to detect a Message-ID header and use it as a file name. One obvious problem is that the file may already exist (Message-IDs should be unique, but this is not guaranteed). The specific problem here is that Yahoo sends some -X headers that contain a 'Message-ID' string, and the class mistakenly considers those as a Message-ID header.

I am attaching the source of one such message. The file name it generated was the following string:

v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239267726; bh=6WhznxarWbV+m1yi7GuDJAazLbXlfPeM0vDdxJplCDc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=r7BUx0Ktc4c5kPukHqm+35GFRCq2I4MNjKMM1erxJ+kEmCgbwZbtS2CWryHrnnqbdiXnOJvLWFWk4rvT5dYHnfOGqgwZt7jXqL3e3yai65jLEzUakKAd/jGsphC0u9ByZp62Rf0vsSNahHA66uzzPrR68TpLLCDkLNl49g4Cu5c=


Environment:

Operating System: Linux
PHP Version: 5.5.2
Database and version: Irrelevant
Browser (and version):


Steps to Reproduce:

Send yourself a mail from Yahoo. Use the ezcMailPop3Transport to fetch a set and wrap it in ezcMailStorageSet. Iterate over the mails/lines or just use a parser to see the error message:

Warning: rename(/some/path/9099.1239117710,/some/path/incoming/1239117710_9099/v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239267726; bh=6WhznxarWbV+m1yi7GuDJAazLbXlfPeM0vDdxJplCDc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=r7BUx0Ktc4c5kPukHqm+35GFRCq2I4MNjKMM1erxJ+kEmCgbwZbtS2CWryHrnnqbdiXnOJvLWFWk4rvT5dYHnfOGqgwZt7jXqL3e3yai65jLEzUakKAd/jGsphC0u9ByZp62Rf0vsSNahHA66uzzPrR68TpLLCDkLNl49g4Cu5c=): No such file or directory in ......


- Attachments
49db6fe44fb4e.msg (2.4 kb)
[Download] [Permanent Link]
Source of an email sent by Yahoo (email addresses removed)

- Comments

Fixed in SVN rev. 10157. It will be released in either 2008.2.3 or 2009.1alpha1.

#261304 by Alexandru Stanoi on April 20th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Mail
Affects 2008.2 - eZ components 2008.2
2008.2.1 - eZ components 2008.2.1
2008.2.2 - eZ components 2008.2.2
1.6.1 - Mail 1.6.1
Fix Versions 2008.2.3 - eZ components 2008.2.3
2009.1alpha1 - eZ components 2009.1alpha1
Reporter Kiril Zyapkov
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Fixed
Created April 15th, 2009
Updated April 20th, 2009
Resolved April 20th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels