How to convert pst file to html to view folder list and message list

I using Groupdocs Conversions .NET
Please help me how to convert pst file to html file, which show list of inside foler and message list like
attached image
Thanks
image.png (27.3 KB)

@huunamnguyen2713

Could you please share a source PST file?

@atir.tahir
Thank for reply
I using Groupdocs Conversions .NET
Im using this sample pst file

It not allowed to upload via file upload form here

@huunamnguyen2713

Please take a look at the output.zip (68.7 KB) of the provided PST.
Could you please share expected output of this PST?

@atir.tahir
Thank for your sample output.
I also get same output with my sourse code.
But I want to get html file with brief of message list inside pst file like above attached [image.png]
I also attach one more image [expected output.png] here.
Please check for me
expected output.png (6.0 KB)

@huunamnguyen2713
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONNET-5809

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

@huunamnguyen2713

We investigated this scenario, the information that you need is some kind of metadata for the loaded PST. We do not convert this data to HTML, because it’s not generic.
What we could do is to return this data in DocumentInfo in a structure way e.g. within a list with meta-info object.
Once you have this info, you can depict it as html or whatever way you like.
Please confirm if this can be helpful for your case, we’ll then continue our investigation.

@atir.tahir
Thank for suggestion but it not helpful info for us.
We got more meta info than these via our another tool.
We need conversion of content inside.
The attach image are meta from DocumentInfo
image.png (10.9 KB)

Thank for suggestion but it not helpful info for us.
We got more meta info than these via our another tool.
We need conversion of content inside.
The attach image are meta from DocumentInfo
image.png (10.9 KB)

@huunamnguyen2713

We will explore the feasibility of implementing this in the Conversion API.

@huunamnguyen2713

You are trying to convert an email with its attachments, but are using the .Convert(…) method to convert to file (filename). This causes you to see as a final result the content of the last attachment.
From v24.3 of GroupDocs.Conversion in such a scenario the provided file name will be used as a template, which will generate as many files as the email has: converted.pdf (the email content itself), converted-1.pdf (the content of the first attachment), etc.

From v24.3 PersonalStorageDocumetnInfo class is extended and in its Folders property, the hierarchy structure of folders and content will be presented.

The snippet below shows this:

internal class Program
{
    static void Main(string[] args)
    {
        var license = new License();
        license.SetLicense(@"...");

        const string source = "sample.pst";

        using (var converter = new Converter(source))
        {
            var info = converter.GetDocumentInfo<PersonalStorageDocumentInfo>();

            TraverseFolders(info.Folders);
        }

        Console.WriteLine($"Done.");
        Console.ReadLine();
    }

    private static void TraverseFolders(IList<PersonalStorageFolderInfo> infoFolders, string ident="")
    {
        foreach (var folder in infoFolders)
        {
            Console.WriteLine($"{ident}- {folder.Name}");

            TraverseFolders(folder.SubFolders, ident+"|  ");

            foreach (var item in folder.Items)
            {
                Console.WriteLine($"{ident}- {item.Title} | {item.From} | {item.To}");
            }
        }
    }
}

Take a look at the output -
screenshot.png (12.5 KB)