Take a look at the code below. I am getting the same message over and over from a folder. If I have 10 messages in the inbox I get 10 messages out but they are all the same. I can not find a code sample to try other than this one. If I can get this working the other issues I have are not that critical. Thanks.
private void Get_Messages_And_Write_To_DASD()
{
Aspose.Email.Outlook.Pst.PersonalStorage pst = PersonalStorage.FromFile("\\TEMP\\Aspose Exchange Test PST.pst");
FolderInfoCollection folderInfoCollection = pst.RootFolder.GetSubFolders();
foreach (FolderInfo folderInfo in folderInfoCollection)
{
MessageInfoCollection messageInfoCollection = folderInfo.GetContents();
foreach (MessageInfo messageInfo in messageInfoCollection)
{
ix1++;
MapiMessage message = pst.ExtractMessage(messageInfo);
message.Save("\\TEMP\\Aspose Message " + folderInfo.DisplayName + " " + ix1 + ".msg");
}
}
}
v