Hi,
Since TgzReader does not provide folder hierarchy we have to use 1st sample from this page to extract data from tgz: (Read all messages from Zimbra TGZ storage)
However, it seems that < while (reader.ReadNextMessage()) > will not return all the items inside tgz, because if we use the 2nd sample from the above page, which is < reader.ExportTo(outputDir) >
We’ll see 2 more items inside < Emailed Contacts > folder:
admin.vcf
yukun.vcf
- So how to get those 2 items using the 1st sample? ( while (reader.ReadNextMessage()) )
The problem with the 2nd one < reader.ExportTo(outputDir) > is that it can’t be used to draw a tree control and worst, it won’t provide any event so we can reflect the underlying events as log file, or cancel the process in the middle etc…
Thanks for consideration
- Test using this:
ZimbraSample.zip (3.8 KB)