Get IP Address Of Sender

Topics: Feature Requests
Dec 31, 2013 at 1:06 PM
Is there any way to get the IP address of the sender.
Jan 1, 2014 at 2:25 PM
Hi paliwalvimal1993,

it's not possible to get the IP address of the sender, unless it is stored in some of the message headers, which is, however, seldom the case.


Jan 2, 2014 at 4:07 PM
the IP address of the sender is always stored in the original message i.e, the raw message. So if you are developing a function to get the original message then please also try to fetch the IP address of the sender if possible.

Jan 7, 2014 at 5:25 PM
At the moment you can receive any data which is contained in the raw message using the library. If you know exactly which header contains the IP address, simply add it to the headers to be fetched and parse it as needed.
Creating a separate method to download the raw message is reasonable, creating a method to get the IP address however not, as it is not a feature required in an IMAP library.

Best regards,