Anyway MailStorageConverter.MboxToPst if used with MboxStorageReader and PersonalStorage.Create will report back the live item being processed count to show a ProgressBar and to cancel in the middle of process?
Seems MailStorageConverter.MailHandler is related, do you have any sample code to use MailHandler?
Dim counter = 0
Dim storage As PersonalStorage = MailStorageConverter.MboxToPst("source.mbox", "target.pst", Sub(ByVal message As MailMessage) counter += 1)
Dim counter As Integer = 0
Sub MBoxCounter(ByVal message As MailMessage)
counter += 1
End Sub
storage = MailStorageConverter.MboxToPst("source.mbox", "target.pst", AddressOf MBoxCounter)
This can be used to chain pst processing.
var somePst = PersonalStorage.Create(...);
// convert mbox 1 to "Deleted Items" folder and add "Sent Items" folder.
MailStorageConverter.MboxToPst(MboxReader1, somePst, "Deleted Items", null).RootFolder.AddSubfolder("Sent Items");
// convert mbox 2 to "Sent Items" folder and add "Inbox" folder.
MailStorageConverter.MboxToPst(MboxReader2, somePst, "Sent Items", null).RootFolder.AddSubfolder("Inbox");
// convert mbox 3 to "Inbox" folder.
somePst = MailStorageConverter.MboxToPst(MboxReader3, somePst, "Inbox", null);
// etc
...
Thanks, but no, tested inside VS.net 2013 Pro, not sure if its overloads are correct or my vs has lack of some newer features.
BTW, it just reflects the processed message number, I hope an event to get that data plus possibility to cancel the process will be added, never found why Email developers don’t like to have events