We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Windows outlook not showing message body for PST created in Mac OS

I have converted a pst from mbox in Mac OS. I am opening this pst in Windows outlook. Outlook is not able to show messages body. Message body is blank.

I have debugged the converted pst using aspose dll and it shows messages body.

I have used below apis for mbox to pst conversion.
PersonalStorage.Create
MapiMessage.FromMailMessage
ForderInfo.AddMessage

@sangapankaj,

I have observed the issue shared by you and request you to please share the working sample code, source MBOX file and output PST. Please also specify that for which message the body is not appearing. We will be able to proceed further with investigation on our end on provision of requested information. I am also assuming that you are using Aspose.Email 19.9.

OS: MAC OS Mojave 10.14.3 vitual machine on Windows10
Development environment: Dot Net C# with Visual studio 2019 for MAC

Sample Function :

public void MBoxToPst()
{
PersonalStorage PSObj = null;
FolderInfo folderInfo = null;
long lTotSize = 0;
foreach (string fileName in inputList)
{
string strDestFile = string.Concat(fileName, “.pst”);
PSObj = PersonalStorage.Create(strDestFile, FileFormatVersion.Unicode);
folderInfo = PSObj.RootFolder;
MboxrdStorageReader MBoxSRObj = null;
FileStream fileStreamObj = new FileStream(fileName, FileMode.Open, FileAccess.Read);
MBoxSRObj = new MboxrdStorageReader(fileStreamObj, false);
int iTotalMailCount = MBoxSRObj.GetTotalItemsCount();
int iExportedMailCount = 0;
MailMessage mailMessageObj;
mailMessageObj = MBoxSRObj.ReadNextMessage();
while (mailMessageObj != null)
{
lTotSize += MBoxSRObj.CurrentDataSize;
iExportedMailCount++;
MapiMessage mapiMessageObj = MapiMessage.FromMailMessage(mailMessageObj,
MapiConversionOptions.UnicodeFormat);
string strEntryID = folderInfo.AddMessage(mapiMessageObj);
mapiMessageObj.Dispose();
mailMessageObj = MBoxSRObj.ReadNextMessage();
}//end of while
mailMessageObj.Dispose();
MBoxSRObj.Dispose();
fileStreamObj.Close();
}//end of foreach
if (PSObj != null)
{
PSObj.Dispose();
}
}//end of func

Please let me know, where can i upload my sample mbox and converted pst file?

Please download sample mbox and converted pst from google drive.

https://drive.google.com/drive/folders/17XbTE3pUtkICkNlGkRRnxz0CtXTgt-ef?usp=sharing

@sangapankaj,

I like to inform that we have created an issue with ID EMAILNET-39619 in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once issue will be fixed.

any update on this issue.

@sangapankaj,

I have verified from our issue tracking system and regret to share that at present the issue is unresolved and is pending in issues queue. We will share the good news with you as soon as the issue will be fixed.