// Log out
Function popLogout ()
{
If (! $ This-> getIsConnect () & $ this-> bolIsLogin)
{
Return false;
}
$ This-> sendCommand ("QUIT ");
$ This-> getLineResponse ();
If (! $ This-> getRestIsSucceed ())
{
Return false;
}
Return true;
}
// Obtain whether or not it is online
Function getIsOnline ()
{
If (! $ This-> getIsConnect () & $ this-> bolIsLogin)
{
Return false;
}
$ This-> sendCommand ("NOOP ");
$ This-> getLineResponse ();
If (! $ This-> getRestIsSucceed ())
{
Return false;
}
Return true;
}
// Obtain the number of mails and number of cells (returned array)
Function getMailSum ($ intReturnType = 2)
{
If (! $ This-> getIsConnect () & $ this-> bolIsLogin)
{
Return false;
}
$ This-> sendCommand ("STAT ");
$ StrLineResponse = $ this-> getLineResponse ();
If (! $ This-> getRestIsSucceed ())
{
Return false;
}
If ($ intReturnType = 1)
{
Return $ this-> strResponse;
}
Else
{
$ ArrResponse = explode ("", $ this-> strResponse );
If (! Is_array ($ arrResponse) | count ($ arrResponse) <= 0)
{
$ This-> setMessage ('stat command response message is error', 2006 );
Return false;
}
Return array ($ arrResponse [1], $ arrResponse [2]);
}
}
// Obtain the Session Id of the specified email
Function getMailSessId ($ intMailId, $ intReturnType = 2)
{
If (! $ This-> getIsConnect () & $ this-> bolIsLogin)
{
Return false;
}