Currently, one HEADER search criteria can be passed to the search command only. To be more precise: can add more but only in OR or NOT fields so there is no option to add multiple with AND relation.
I could workaround it with passing search object like the following:
{
header: ['subject', 'To search for this'],
Header: ['from', 'from@address'],
hEader: ['to', 'to@address']
}
But this is not a nice solution. I've tried to pass header: ['subject', 'To search for this', 'HEADER', 'from', 'from@address'] but that's results in invalid command since 'HEADER' will be added as String not as atom.
I know about #212 but I wanted to report this. Who knows, maybe I'll have time to create a PR as well.
Currently, one HEADER search criteria can be passed to the search command only. To be more precise: can add more but only in OR or NOT fields so there is no option to add multiple with AND relation.
I could workaround it with passing search object like the following:
But this is not a nice solution. I've tried to pass
header: ['subject', 'To search for this', 'HEADER', 'from', 'from@address']but that's results in invalid command since'HEADER'will be added asStringnot asatom.I know about #212 but I wanted to report this. Who knows, maybe I'll have time to create a PR as well.