Issue #12708 has been updated by Rupesh J.

File mail_source.jpg added

----------------------------------------
Bug #12708: Net::IMAP : Mail To address is not correct when uid_fetch is called.
https://bugs.ruby-lang.org/issues/12708#change-60296

* Author: Rupesh J
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Hello,

In the mail box, I have a mail with the following headers,

!mail_source.jpg!

When I connect to the Mailbox, And call,

raw_mail = imap.uid_fetch(uid,'RFC822')[0].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.

Thanks.





---Files--------------------------------
mail_source.jpg (23.9 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>