Skip to content

make OR filter work#444

Open
Setogit wants to merge 2 commits intomscdex:masterfrom
Setogit:master
Open

make OR filter work#444
Setogit wants to merge 2 commits intomscdex:masterfrom
Setogit:master

Conversation

@Setogit
Copy link

@Setogit Setogit commented Jan 21, 2015

With this change, the following IMAP filter now works as follows;
Unseen AND size<500MB AND (FROM : tedj7890@gmail.com OR abc@example.com OR xyz@public.com OR 'Tetsuo Seto')

var FIVE_HUNDRED_MB = (50_1024_1024).toString()
searchFilter: ['UNSEEN', ['SMALLER',FIVE_HUNDRED_MB], 'OR',
['OR', ['FROM','tedj7890@gmail.com'],['FROM','abc@example.com']],
['OR', ['FROM','xyz@public.com'],['FROM','Tetsuo Seto']]
],

@mscdex
Copy link
Owner

mscdex commented Jan 21, 2015

Please add tests and possibly adjust the documentation to reflect this new behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants