Closed ratribiana closed 2 years ago
If you're trying to find messages where the 'From' matches only one of those addresses, you need to continually nest each 'OR'
:
[
[ 'TO', 'to@receiver.com' ],
[ 'OR',
[ 'FROM', 'test@email1.com' ],
[ 'OR',
[ 'FROM', 'test2@email2.com' ],
// etc.
],
],
]
Will it return messages from 2 out of those email accounts or just only one? Once the search found the match for one address, will it continue to check other addresses or will return the message immediately?
If you add all of the addresses you're searching for, it should return all messages where the 'From' matches only one of those addresses. It's saying "find messages addressed to tospan>@</spanreceiver.com AND is from either testspan>@</spanemail1.com or test2span>@</spanemail2.com or .... etc."
Many thanks!
I tried this but not working
I tried this too but not working as well, there is no return