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

Free Support Forum - aspose.com

Corrupted PST is not read using Aspose.Email for java

Hi Team,
I am trying to read corrupted PST file and save one by one mail as EML file. But PST is not get read

source code :-

MailMessage f_objMailMessage = null;
MapiMessage f_objMapiMessage = null;
IGenericEnumerable f_mapiMessageCollection =
p_objFolderInfo.enumerateMapiMessages();
MailConversionOptions f_mailConversionOption = null;

IGenericEnumerator f_Iterator = f_mapiMessageCollection.iterator();

while(f_Iterator.hasNext())
{
f_objMapiMessage = f_Iterator.next();
if (f_objMapiMessage != null && f_objMapiMessage.getMessageClass().equals(“IPM.Note”))
{
f_mailConversionOption = new MailConversionOptions();
f_objMailMessage = p_objMapiMessage.toMailMessage(f_mailConversionOption);
f_objMailMessage.save(f_StrDestinationPath,SaveOptions.getDefaultEml());
}
}

Source sample :-

corrupt.pst.zip (1.5 MB)

@kharade.a,

Aspose.Email API doesn’t support to load/read corrupted PST files. Please let us know if we can be of any other help to you with respect to your queries related to API.

Any solution available ?. If not at least update the forum.

@kharade.a

We are sorry for inconvenience.
It is to inform you that we do not provide any support to load/read corrupted PST files.