Skip to content

Commit 401fdcd

Browse files
committed
Message search criteria "NOT" added #181
1 parent 6e1716d commit 401fdcd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/IMAP/Query/WhereQuery.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class WhereQuery extends Query {
5656
protected $available_criteria = [
5757
'OR', 'AND',
5858
'ALL', 'ANSWERED', 'BCC', 'BEFORE', 'BODY', 'CC', 'DELETED', 'FLAGGED', 'FROM', 'KEYWORD',
59-
'NEW', 'OLD', 'ON', 'RECENT', 'SEEN', 'SINCE', 'SUBJECT', 'TEXT', 'TO',
59+
'NEW', 'NOT', 'OLD', 'ON', 'RECENT', 'SEEN', 'SINCE', 'SUBJECT', 'TEXT', 'TO',
6060
'UNANSWERED', 'UNDELETED', 'UNFLAGGED', 'UNKEYWORD', 'UNSEEN'
6161
];
6262

@@ -251,6 +251,14 @@ public function whereNew() {
251251
return $this->where('NEW');
252252
}
253253

254+
/**
255+
* @return WhereQuery
256+
* @throws InvalidWhereQueryCriteriaException
257+
*/
258+
public function whereNot() {
259+
return $this->where('NOT');
260+
}
261+
254262
/**
255263
* @return WhereQuery
256264
* @throws InvalidWhereQueryCriteriaException

0 commit comments

Comments
 (0)