/** * * Special handling for hasTop. The headers of the first message is * retrieved if Top wasn't needed/tried yet. * * @see Zend_Mail_Abstract:__get() */ public function __get($var) { if (strtolower($var) == 'hastop') { if ($this->_protocol->hasTop === null) { // need to make a real call, because not all server are honest in their capas try { $this->_protocol->top(1, 0, false); } catch (Exception $e) { // ignoring error } } return $this->_protocol->hasTop; } return parent::__get($var); }
/** * * Special handling for hasTop. The headers of the first message is * retrieved if Top wasn't needed/tried yet. * * @see Zend_Mail_Abstract:__get() */ public function __get($var) { return parent::__get($var); }