* @category Horde * @copyright 2010-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Search_Element_Bulk extends IMP_Search_Element { /** * Constructor. * * @param boolean $not If true, do a 'NOT' search of $text. */ public function __construct($not = false) { /* Data element: (integer) Do a NOT search? */ $this->_data = intval(!empty($not)); } /** */ public function createQuery($mbox, $queryob) { $queryob->headerText('precedence', 'bulk', $this->_data); return $queryob; } /** */ public function queryText() { return ($this->_data ? _("not") . ' ' : '') . _("Bulk Messages"); } }