diff options
author | 2014-03-06 08:44:05 +0100 | |
---|---|---|
committer | 2014-03-06 08:44:05 +0100 | |
commit | ce89b86f3b6b6b86a5ae46c4b77c983adcce67a4 (patch) | |
tree | 7e5afe125309c4bb77baeb709a0e09a4d07a85ce /src/objc/imap/MCOIMAPSearchExpression.h | |
parent | 4c8b8fdaca80eeda2a9a2f8d9e98b2a8826200ec (diff) |
Added not search expression in order to have searchexpressions such as, 'subect does not contain', 'email address is not on to list'
Diffstat (limited to 'src/objc/imap/MCOIMAPSearchExpression.h')
-rw-r--r-- | src/objc/imap/MCOIMAPSearchExpression.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPSearchExpression.h b/src/objc/imap/MCOIMAPSearchExpression.h index d1d2d701..3ff956b2 100644 --- a/src/objc/imap/MCOIMAPSearchExpression.h +++ b/src/objc/imap/MCOIMAPSearchExpression.h @@ -320,6 +320,18 @@ */ + (MCOIMAPSearchExpression *) searchOr:(MCOIMAPSearchExpression *)expression other:(MCOIMAPSearchExpression *)other; +/** + Creates a search expression that matches when the argument is not matched. + + Example: + + MCOIMAPSearchExpression * exprSubject = [MCOIMAPSearchExpression searchSubject:@"airline"] + MCOIMAPSearchExpression * expr = [MCOIMAPSearchExpression searchNot:exprSubject]; + The expression will match when the subject does not contain the word airline + + */ ++ (MCOIMAPSearchExpression *) searchNot:(MCOIMAPSearchExpression *)expression; + @end #endif |