openeclass/modules/auth/methods/pop3.php
/* Close method - this method must be called at least if there are any
     messages to be deleted */
Close method - this method must be called at least if there are any
messages to be deleted
Close method - this method must be called at least if there are any messages to be deleted
Function Close()
	{
		if($this->state=="DISCONNECTED")
			return($this->SetError("no connection was opened"));
		if($this->must_update
		|| $this->quit_handshake)
		{
			if($this->PutLine("QUIT")==0)
				return($this->SetError("Could not send the QUIT command"));
			$response=$this->GetLine();
			if(GetType($response)!="string")
				return($this->SetError("Could not get quit command response"));
			if($this->Tokenize($response," ")!="+OK")
				return($this->SetError("Could not quit the connection: ".$this->Tokenize("\r\n")));
		}
		$this->CloseConnection();
		$this->state="DISCONNECTED";
		return("");
	}
Function Close ( ) { if ( $ this -> state == " DISCONNECTED " ) return ( $ this -> SetError ( " no connection was opened " ) ) ; if ( $ this -> must_update || $ this -> quit_handshake ) { if ( $ this -> PutLine ( " QUIT " ) == 0 ) return ( $ this -> SetError ( " Could not send the QUIT command " ) ) ; $ response = $ this -> GetLine ( ) ; if ( GetType ( $ response ) != " string " ) return ( $ this -> SetError ( " Could not get quit command response " ) ) ; if ( $ this -> Tokenize ( $ response , " " ) != " +OK " ) return ( $ this -> SetError ( " Could not quit the connection:  " . $ this -> Tokenize ( " \r \n " ) ) ) ; } $ this -> CloseConnection ( ) ; $ this -> state = " DISCONNECTED " ; return ( " " ) ; }
Close method - this method must be called at least if there are any
messages to be deleted
Close method - this method must be called at least if there are any messages to be deleted