Hi Steven,
Hi Steven,
Please accept our apology for a delayed response. We have gone through your questions and would like to share our knowledge with you for the ones that we thought we have understood completely. For others , we would request you to please provide more information in order for us to answer these.
SEGlass:
- eMail date.
The “MailMessage” class has a method: getDate(). Questions:
a. What date is this (is it the received date, the sent date, the eMail was created)?
Ans: This date is Sent Date if sent/received message is extracted from mail box. If message is still not sent, this date is empty or invalid.
b. Is it possible to get the sent and received date from the class?
Ans: You can get the sent and received dates as follow:
//MailMessage msg is extracetd from mail box
String sentDate = msg.getHeaders().get("Date");
//OR
String sentDate = msg.getDate().toString();
String receivedDate = msg.getHeaders().get("Received");
Another way is to load into temporary MapiMessage and retrieve these as follow:
MapiPropertyCollection coll = mapiMsg.getProperties();
MapiProperty prop = coll.get(MapiPropertyTag.PR_CREATION_TIME);
if (prop != null)
System.out.println("PR_CREATION_TIME "+prop.getDateTime().toString());
prop = coll.get(MapiPropertyTag.PR_CLIENT_SUBMIT_TIME);
if (prop != null)
System.out.println("PR_CLIENT_SUBMIT_TIME "+prop.getDateTime().toString());
prop = coll.get(MapiPropertyTag.PR_DELIVER_TIME);
if (prop != null)
System.out.println("PR_DELIVER_TIME "+prop.getDateTime().toString());
prop = coll.get(MapiPropertyTag.PR_MESSAGE_DELIVERY_TIME);
if (prop != null)
System.out.println("PR_MESSAGE_DELIVERY_TIME "+prop.getDateTime().toString());
prop = coll.get(MapiPropertyTag.PR_ORIGINAL_DELIVERY_TIME);
if (prop != null)
System.out.println("PR_ORIGINAL_DELIVERY_TIME "+prop.getDateTime().toString());
prop = coll.get(MapiPropertyTag.PR_ORIGINAL_SUBMIT_TIME);
if (prop != null)
System.out.println("PR_ORIGINAL_SUBMIT_TIME "+prop.getDateTime().toString());
prop = coll.get(MapiPropertyTag.PR_RECEIPT_TIME);
if (prop != null)
System.out.println("PR_RECEIPT_TIME "+prop.getDateTime().toString());
SEGlass:
- Time Zone for Mail Dates
When reading mail files from disk, the date seems to be adjusted for the timezone too many times for EML and EMLX files. It works correctly for MSG files. For example. I’m in the >Pacific Time Zone in the US (currently GMT-7). If an eMail has a date of noon (as shown by the eMail program that created it), aspose shows the eMail to 7:00 PM. It seems to >reading the local time as if it were GMT and adjusting back to the local time.
Is this a bug? Am I interpreting the dates incorrectly? Does this happen with all sources of EML and EMLX files (these files were created by outlook on the mac and by the mail program on the mac).
Can you please mention to us the specific the EML/EMLX files and the MSG files that we can further analyze for these issues? Also, how you are retrieving the time zone information from these files?
SEGlass:
- Body Text
Some mail messages have the body text saved more than once. In other APIs for mail it is possible to retrieve a single copy of the body text in HTML or Plain format. That does >not appear to be the case with MailMessage.
Are there APIs that will do this for me?
Is there a way to tell if the body text contains more than one version of the message?
We would request you to please mention to us such a mail message from your provided sample files for our detailed analysis.
SEGlass:
- Opening PST Files already open by Outlook
Is it possible to open PST and OST files that are already open by outlook or do we have to force our users to quit outlook first?
It is the default behaviour of PST/OST files to allow only a single instance to be opened. Parallel access to these files is not supported.
SEGlass:
- MHTML and MHT File Formats
Outlook lets me save a message in two different “html” formats. The “mht” format produces a single file with a “.mht” extension. The “mhtml” format produces a folder with >multiple files and the older doesn’t have an extension but seems to end with “_files”.
When I open an “.mht” file, I don’t seem to get any of the meta data from the eMail. I only am able to read the what appears to be a formatted version of the eMail that includes >meta data like “from,” “to,” “date,” “subject.” Is this the expected behavior for “.mht” files.
It seems to be an expected behaviour as this is the same in case of Outlook as well as Aspose.Email.
SEGlass:
- Another post in this forum suggests that support for sending and receiving mail (similar to that available in the .net version) will be available in the “fall.” Is there any >new estimate as to when the new version will be released?
Can you please provide a link to the post, so that I can check the status of the issue from our Issue Tracking System and update you accordingly.
Once again, we are sorry for our delayed response. Please provide the additional information and we will get back to you as soon as possible with the aided information.
Hi,
The issues you have found earlier (filed as EMAILJAVA-33177) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.