Hi,
I have to read PST file one by one mail and save this mail into MSG. But in my source PST sample has Task and Contacts as an attachment but when i save that mail as as MSG at destination. and when i open this mail task annd contacts attachment shown MSG as an attachment.
Please find the source PST and source screen shots
**source code :- **
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_objMapiMessage.save(f_StrDestinationPath,SaveOptions.getDefaultEml());
}
}
source PST Sample :-
Test Contact and task.pst.zip (133.2 KB)
Screen Shots of Source PST Sample.
conatct as an attachment.png (72.3 KB)
Task as an attachment.png (72.6 KB)