I am trying to extract an MSG file from an EML attachment, I can get the script to produce the name of the attachment but I cannot figure out how I get the attachment to be saved to the PST rather than the EML, my code looks as follows
session = new RDOSession();
session.LogonPstStore(C:\\temp\\outputfile.pst);
var mail = RdoFolder.Items.Add("IPM.Mail");
mail.Sent = true;
mail.Import(C:\\temp\\randomfile.eml, 1024);
mail.Save();
Any assistance will be appreciated