public function getImapStream($forceConnection = true) {
		static $imapStream;
		if($forceConnection) {
			if($imapStream && (!is_resource($imapStream) || !imap_ping($imapStream))) {
				$this->disconnect();
				$imapStream = null;
			}
			if(!$imapStream) {
				$imapStream = $this->initImapStream();
			}
		}
		return $imapStream;
	}
public function getImapStream($forceConnection = true) {
		static $imapStream;
		if($forceConnection) {
			if($imapStream && (!is_resource($imapStream) || !imap_ping($imapStream))) {
				$this->disconnect();
				$imapStream = null;
			}
			if(!$imapStream) {
				$imapStream = $this->initImapStream();
			}
		}
		return $imapStream;
	}
public function getImapStream ( $ forceConnection = true ) { static $ imapStream ; if ( $ forceConnection ) { if ( $ imapStream && ( ! is_resource ( $ imapStream ) || ! imap_ping ( $ imapStream ) ) ) { $ this -> disconnect ( ) ; $ imapStream = null ; } if ( ! $ imapStream ) { $ imapStream = $ this -> initImapStream ( ) ; } } return $ imapStream ; }
Get IMAP mailbox connection stream
@param bool $forceConnection Initialize connection if it's not initialized
@return null|resource
Get IMAP mailbox connection stream