Package com.aspose.email

Examples of com.aspose.email.PersonalStorage


public class AsposeOSTtoPST
{
  public static void main(String[] args)
  {
    PersonalStorage ost = PersonalStorage.fromFile("data/outlook.ost");

    ost.saveAs("data/AsposeOST-PST.pst", FileFormat.Pst);
    System.out.println("Done");
  }
View Full Code Here


{
  public static void main(String[] args)
  {
    // Load the Outlook PST file
    String pstFileName = "data/archive.pst";
    PersonalStorage pst = PersonalStorage.fromFile(pstFileName);
   
    // Get the Display Name of the PST file
    System.out.println("Display Name: " + pst.getDisplayName());

    // Get the folders information
    FolderInfoCollection folderInfoCollection = pst.getRootFolder().getSubFolders();
    // Browse through each folder to display folder name and number of messages
    for (int i = 0; i < folderInfoCollection.size(); i++)
    {
        FolderInfo folderInfo = (FolderInfo) folderInfoCollection.get_Item(i);
        System.out.println("Folder: " + folderInfo.getDisplayName());
View Full Code Here

TOP

Related Classes of com.aspose.email.PersonalStorage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.