Hello,
First of all, though right now I'm only evaluating your product (ASPOSE.EMAIL) for a future product which I really hope that it will turn into a final project, I'm having a small issue in putting back an EML message saved to disk to a PST file. My scenario works in 99% of the cases and your product is great - it does what is supposed to do in only few lines of code - so 99,99% your library it will be my choice.
The issue is that I'm having some messages (only from the sent items folder) that when are being put back into the PST, they are missing some properties (sending date and sender name) - is not your fault - it seems that is somehow related with the sender client application - doesn't matter. What it matters is that I'm having these missing pieces into a databases and when I'm putting back the EML into PST, if something is missing I'm able to get the required info - so far so good.
If I'm having the sender info missing, I'm using a piece of code found on this forum and it works great but when I'm trying to put the sending date back to the message I'm having some issues.
Even if I'm setting only the MapiPropertyTag.PR_CLIENT_SUBMIT_TIME or also MapiPropertyTag.PR_DELIVER_TIME, the Outlook displays in the list of messages the time when that message has been put back into the PST, BUT (there is a very big BUT) - on the right pane - the details pane - I'm seeing the correct Date that I set in my code. Please, can you tell me what other properties I have to set in order to have also the date displayed in the messages' list correct?
The code that I'm using for setting a date is the following:
public static void SetDatePropertyValue(this MapiMessage message, long mapiTag, DateTime dateTimeValue)
{
MapiProperty propertyToSet = new MapiProperty(mapiTag, ConvertDateTimeToMailDateTime(dateTimeValue));
message.SetProperty(propertyToSet);
}
First of all, though right now I'm only evaluating your product (ASPOSE.EMAIL) for a future product which I really hope that it will turn into a final project, I'm having a small issue in putting back an EML message saved to disk to a PST file. My scenario works in 99% of the cases and your product is great - it does what is supposed to do in only few lines of code - so 99,99% your library it will be my choice.
The issue is that I'm having some messages (only from the sent items folder) that when are being put back into the PST, they are missing some properties (sending date and sender name) - is not your fault - it seems that is somehow related with the sender client application - doesn't matter. What it matters is that I'm having these missing pieces into a databases and when I'm putting back the EML into PST, if something is missing I'm able to get the required info - so far so good.
If I'm having the sender info missing, I'm using a piece of code found on this forum and it works great but when I'm trying to put the sending date back to the message I'm having some issues.
Even if I'm setting only the MapiPropertyTag.PR_CLIENT_SUBMIT_TIME or also MapiPropertyTag.PR_DELIVER_TIME, the Outlook displays in the list of messages the time when that message has been put back into the PST, BUT (there is a very big BUT) - on the right pane - the details pane - I'm seeing the correct Date that I set in my code. Please, can you tell me what other properties I have to set in order to have also the date displayed in the messages' list correct?
The code that I'm using for setting a date is the following:
public static void SetDatePropertyValue(this MapiMessage message, long mapiTag, DateTime dateTimeValue)
{
MapiProperty propertyToSet = new MapiProperty(mapiTag, ConvertDateTimeToMailDateTime(dateTimeValue));
message.SetProperty(propertyToSet);
}