Hi Alessio,

On 06/08/2010 05:23 PM, Alessio Spoto wrote:
> Hello,
> I've a php script that run in a crontab enviroment (CLI), each ten minutes
> i read the mail from an account using IMAP, (i only need the headers)
> then put the results in a mysql dbase

> thi'is the error :
> 
> PHP Fatal error:  Uncaught exception 'ezcMailTransportException' with message 
> 'An error occured while sending or receiving mail. Could not read from the 
> stream. It was probably terminated by the host.' in 
> /root/parser/ezc/Mail/src/transports/transport_connection.php:217
> Stack trace:
> #0 /root/parser/ezc/Mail/src/transports/imap/imap_transport.php(2655): 
> ezcMailTransportConnection->getLine()
> #1 /root/parser/ezc/Mail/src/transports/imap/imap_transport.php(739): 
> ezcMailImapTransport->getResponse('A0002')
> #2 /root/parser/parser3a.php(9): ezcMailImapTransport->selectMailbox('Inbox')
> #3 {main}
>    thrown in /root/parser/ezc/Mail/src/transports/transport_connection.php on 
> line 217

> The ezComponents are in version 2009.1
> 
> php -v returns :
> PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

> i'v seen that someone else get this error in previous release,
> 
> (http://issues.ez.no/13010)
> 
> checking the code the result is that the ezc are already patched

first of all, you should upgrade your components installation to the
recent version 2009.2.1. Maybe this already fixes the issue.

Without seeing the script and knowing the particular server, it's hard
to debug this error. Do you get the error constantly or just now and then?

For further conversation, please use our new mailinglist:

        zeta-...@incubator.apache.org

Thanks,
Toby
-- 
Tobias Schlitt         tob...@schlitt.info       GPG Key: 0xC462BC14
a passion for php                     http://schlitt.info/opensource
eZ Components are Zeta Components now!          http://bit.ly/9S7zbn
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to