Can I search for messages being sent from a specific domain rather that a full email address, with an asterisk maybe?
So, let's say, there are 3 senders abc@gmail.com, def@gmail.com, ghi@gmail.com.
Now, I want to search for the emails having these addresses as their sender.
For eg;imap.search(['FROM','*@gmail.com'], function (err, results) {
NOTE: don't want to go with OR and FROM combination as there could be around hundreds of email addresses belonging to a domain.
Can I search for messages being sent from a specific domain rather that a full email address, with an asterisk maybe?
So, let's say, there are 3 senders
abc@gmail.com
,def@gmail.com
,ghi@gmail.com
. Now, I want to search for the emails having these addresses as their sender.For eg;
imap.search(['FROM','*@gmail.com'], function (err, results) {
NOTE: don't want to go with OR and FROM combination as there could be around hundreds of email addresses belonging to a domain.