|
From: Kai K. <kai...@gm...> - 2005-04-11 05:47:32
|
Hi Johannes,
it is difficult to say what is going wrong there. I tested it again here and
some other user also without any problems so it is not possible for me to
debug this error :-(.
With the last version it is not possible to flush the pop3 stream but with
one of the next releases. You can implement the function by yourself if it
help.
Put following function into the fsocket class:
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/*! \fn function fsocket_flush_stream( )
* \brief Will flush the socket stream
* \return State = true or false */
function fsocket_flush_stream()
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
{
return (unset( $this->fsocket_stream ));
}
and the following into the pop3 class:
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/*! \fn function pop3_flush_stream()
* \brief Will flush the complete pop3 stream
* \return State = true or false */
function pop3_flush_stream()
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
{
return ($this->pop3_socket_hdl->fsocket_flush_stream());
}
Regards,
Kai
Hi!
> Please remove the line "$mail->pop3_close();" out of the sample and
> look what happen. It could be an error in this function.
No, it wasn't the $mail->pop3_close(). The error message appears when
$mail->pop3_get_mail($id) is called the _second_ time. Is there anything I
have to do before calling $mail->pop3_get_mail($id) a second time? Actually,
the error appears also when I call pop_delete_mail or pop3_close _after_
calling pop3_get_mail. It seems that the stream used by pop3.php is somehow
not read to the end. Is this possible? Can I somehow flush the stream of the
pop3-class?
Thanks a lot for your help!
Regards,
johannes
--
Handyrechnung zu hoch? Tipp: SMS und MMS mit GMX
Seien Sie so frei: Alle Infos unter http://www.gmx.net/de/go/freesms
|