Wednesday, December 5, 2001 06:54 PM
Note that RFC 822 does not define a field for the received date and getReceivedDate method is based on this.
You may want to try the below getHeader and then parse out the received Date from the data that looks like
Date Mesg Received : (from root@localhost)
by host.super-nova.net (8.10.2/8.10.2) id fB4BQb029024
for firstname.lastname@example.org; Tue, 4 Dec 2001 06:26:37 -0500
// System.out.println("Date Mesg Received : "+message.getReceivedDate().toString()+"
String receivedData = message.getHeader("Received");
for(int k = 0; k < receivedData.length; k++)
System.out.println("Date Mesg Received : "+receivedData[k]+"