Recently i purchased Aspose Email for .net and it's not converting complete emails (EML) format from OST and PST file format and EML showing not containing all items of email, can you please help me to resolve it..
please check this code and help me
private void SaveContactInEMLFiles(FolderInfo folderInfo, PersonalStorage pst, string path)
{
// loop through all the messages in this folder
if (folderInfo.DisplayName.Equals(Program.SelectedFolder, StringComparison.OrdinalIgnoreCase) == true)
{
MessageInfoCollection messageInfoCollection = folderInfo.GetContents();
foreach (MessageInfo messageInfo in messageInfoCollection)
{
// get the message in MapiMessage instance
MapiMessage message = pst.ExtractMessage(messageInfo);
// save this message to disk in msg format
try
{
message.Save(path + message.Subject.Replace(":", " ") + ".eml");
}
catch { };
}
}
// call this method recursively for each subfolder
if (folderInfo.HasSubFolders == true)
{
foreach (FolderInfo subfolderInfo in folderInfo.GetSubFolders())
{
SaveContactInEMLFiles(subfolderInfo, pst, path);
}
}
}
#endregion