Creating pst files

i was reading through the api documentation, and i have a couple questions.


1.) can Aspose create a new pst file?

2.) can it save messages from a pst file as rfc822 eml files?

3.) save contacts as vcard files?

4.) save calendar entries as .ics files?

essentially, what I am looking to do is read a pst file, evaluate the contents, and save certain messages/entries to a new pst file.

thanks in advance.

Hi,


Thank you for inquiry.
  1. Aspose.Network for .NET cannot create a new PST file. We will consider adding it in future. I have added a new feature request for this in our system. We will inform you when it becomes available.
  2. Please refer to this article http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/extract-messages-from-outlook-pst-file-and-save-to-disk-or-stream-in-msg-format.html for extracting messages from PST and saving as MSG files. You can modify the code as below to save the messages in EML format.
    MailMessageInterpretor mi = MailMessageInterpretorFactory.Instance.GetIntepretor(mapiMessage.MessageClass);
    MailMessage mailMessage = mi.Interpret(mapiMessage);
    mailMessage.Save(“message.eml”);
  3. Saving contact as vcard is not currently supported. We are working on this feature and hopefully it will be available in near future. The tracking issue ID of this feature is 18736. We will inform you when it gets available.
  4. Saving calendar as ics is also not supported. Tracking ID of this feature is 14607. We will notify you when it becomes available.
You can use the sample code at http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/extract-messages-from-outlook-pst-file-and-save-to-disk-or-stream-in-msg-format.html to save messages, contacts and calendar items in MSG format. They all will open correctly in Outlook and will be moved in new PST accordingly when the feature becomes available.

The issues you have found earlier (filed as 14607;18736) have been fixed in [this update](http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/entry294803.aspx).

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hi,

With the latest release, it is possible to save contacts as vcard files.

// load the Outlook PST file
PersonalStorage pst = PersonalStorage.FromFile(@“d:\Data\Emails.pst”);
// Get the Contacts folder
FolderInfo folderInfo = pst.RootFolder.GetSubFolder(“Contacts”);
// Loop through all the contacts in this folder
MessageInfoCollection messageInfoCollection = folderInfo.GetContents();
foreach (MessageInfo messageInfo in messageInfoCollection)
{
// Get the contact information
MapiContact contact = (MapiContact)pst.ExtractMessage(messageInfo).ToMapiMessageItem();
// Save to disk in vcard format
contact.Save(“Contacts\” + contact.NameInfo.DisplayName + “.vcf”, ContactSaveFormat.VCard);
}


The issues you have found earlier (filed as 25846) have been fixed in [this update](http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/entry307168.aspx).

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as 24272 ) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.