public function setComparator($comparator = null) { $comp = is_null($comparator) ? $this->getParam('comparator') : $comparator; if (is_null($comp)) { return; } $this->login(); if (!$this->_capability('I18NLEVEL', '2')) { throw new Horde_Imap_Client_Exception_NoSupportExtension('I18NLEVEL', 'The IMAP server does not support changing SEARCH/SORT comparators.'); } $this->_setComparator($comp); }