Does anybody know how to get mail from an array of email addresses using the 'mail' gem in Ruby? I've seen the thread for getting unread messages like so:
new_messages = Mail.find(keys: ['NOT','SEEN'])
But I cannot find how to get messages from a certain address. I've tried:
new_messages = Mail.find(keys: ['FROM','example@hello.com'])
but it doesn't work.
I know section 6.4.4 of the IMAP protocol indicates the different search flags you can use to search for messages, but I can't seem to make it work.