New mbox splitter

Hello
Does the new mbox splitter method support these 2?

  1. Reflect the realtime progress by current/total recipients to be shown via a ProgressBar?
  2. Ability to immediately cancel the process in the middle of splitting?
    Best.

Hello,

1 can be implemented on the user side based on the available events and the method to get the total items count.

2 is not supported because the SplitInto method is synchronous.

1 Like

Hello and thanks for your help.

You mean to cancel the thread in the middle? If those storage functions have a cancel method, they will correctly process the current item and then will stop from the next item and properly close the file streams, if we force cancel the working thread, the output storage might become unusable, am I right? Just curious if there’s a plan to support cancellation to those storage split merge functions? :slight_smile:

Hello and thanks for your help.

Getting the total items count is not a big deal, getting current item being processed is the vital point, possible to get in real-time?

You mean to cancel the thread in the middle? If those storage functions have a cancel method, they will correctly process the current item and then will stop from the next item and properly close the file streams, if we force cancel the working thread, the output storage might become unusable, am I right? Just curious if there’s a plan to support cancellation to those storage split merge functions? :slight_smile:

Hello,
the current element being processed is available in the event arguments. You have access to it in the handler. See sample code in the release notes.
Regarding the second question about canceling long-running operations without damaging the file, we will implement this in the future.

1 Like