Net::IMAP : Mail To address is not correct when uid_fetch is called.
In the mail box, I have a mail with the following headers,
When I connect to the Mailbox, And call,
raw_mail = imap.uid_fetch(uid,'RFC822').attr['RFC822']
The headers TO address, shows me something other than the above value.
The mail box is configured with different proxyAddresses and any mail delivered to the proxy address, the mail that is retrieved from Ruby is that of the actual mail attribute configured.
How to extract this "TO" email alias.