Search for either new messages (messages that have the '\Recent' flag
but not the '\Seen' flag) or old messages (messages that do not have
the '\Recent' flag). If new messages are searched, this will clear
any '\Recent' or '\Unseen' flag searches. If old messages are searched,
this will clear any '\Recent' flag search.
/** * @dataProvider newMsgsQueryProvider */ public function testNewMsgsQuery($newmsgs, $fuzzy, $expected) { $ob = new Horde_Imap_Client_Search_Query(); $ob->newMsgs($newmsgs, array('fuzzy' => $fuzzy)); $this->assertEquals($expected, $fuzzy ? $this->_fuzzy($ob) : strval($ob)); }