Dave Fischetti wrote:
> Hey Derick and all...
> 
> I just thought I would follow up on this again and see if anyone can  
> shed any light on this. It just happened again and I'm stumped as to  
> how to prevent the script from dying when it tries to parse an email  
> that has an image path that is incorrect in the header. As mentioned,  
> this is the Warning i'm receiving (below)... any help is REALLY  
> appreciated!
> 
> Will just ignoring all warnings allow this to right right? not the  
> right solution, but its something? Don't think it will help though.
> 
> Error below.... Thanks again
> 
> <br />
> <b>Warning</b>:  fopen(/tmp/13420-1/cam_data/photo093.jpg) [<a  
> href='function.fopen'>function.fopen</a>]: failed to open stream: No  
> such file or directory in <b>/usr/include/php/ezcomponents-2007.1.1/ 
> Mail/src/parser/parts/file_parser.php</b> on line <b>131</b><br />
> <br />
> <b>Warning</b>:  stream_filter_append() expects parameter 1 to be  
> resource, boolean given in <b>/usr/include/php/ezcomponents-2007.1.1/ 
> Mail/src/parser/parts/file_parser.php</b> on line <b>173</b><br />
> <br />
> <b>Fatal error</b>:  Uncaught exception 'ezcBaseFileNotFoundException'  
> with message 'The file '/tmp/13420-1/cam_data/photo093.jpg' could not  
> be found.' in /usr/include/php/ezcomponents-2007.1.1/Mail/src/parts/ 
> fileparts/disk_file.php:86
> Stack trace:
> #0 /usr/include/php/ezcomponents-2007.1.1/Mail/src/parts/file.php(93):  
> ezcMailFile-&gt;__set('fileName', '/tmp/13420-1/ca...')
> #1 /usr/include/php/ezcomponents-2007.1.1/Mail/src/parts/fileparts/ 
> disk_file.php(32): ezcMailFilePart-&gt;__construct('/tmp/13420-1/ca...')
> #2 /usr/include/php/ezcomponents-2007.1.1/Mail/src/parser/parts/ 
> file_parser.php(246): ezcMailFile-&gt;__construct('/tmp/13420-1/ca...')
> #3 /usr/include/php/ezcomponents-2007.1.1/Mail/src/parser/parts/ 
> multipart_parser.php(146): ezcMailFileParser-&gt;finish()
> #4 /usr/include/php/ezcomponents-2007.1.1/Mail/src/parser/parts/ 
> multipart_parser.php(180): ezcMailMultipartParser-&gt;parseBody('------ 
> =_Part_84...')
> #5 /usr/include/php/ezcomponents-2007.1.1/Mail/src/parser/parts/ 
> rfc822_parser.php(111): ezcMailMultipartParser-&gt;parseBody('------ 
> =_Part_ in <b>/usr/include/php/ezcomponents-2007.1.1/Mail/src/parts/ 
> fileparts/disk_file.php</b> on line <b>86</b><br />

Hi Dave,

I opened an issue for this (http://issues.ez.no/12318) and I added a fix 
for it. The slashes (and other unsafe characters) are converted to 
underscores. This should prevent the warnings you get.

The fix is in SVN for now, and it will be available in Mail 1.4.1 
release which will come out soon (later this month probably).

Hope this fixes your problem.

Cheers,
Alex.

-- 
Alexandru Stanoi
eZ Components System Developer
eZ Systems | http://ez.no
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to