PersonalStorage.SplitInto

Hello,
When using PersonalStorage.SplitInto, there are 2 issues:

  1. The output created .ost, will have the following folders in root:
    Deleted Items/Inbox/Calendar/Contacts/Drafts/Journal/Notes/RSS Feeds/Tasks
    In addition to the 2 standard folders:
    Root - Public/Root - Mailbox
    If I’m not wrong, they shall be created inside:
    Root - Mailbox \ IPM_SUBTREE
    And not the root (for Ost only - for Pst root is correct)

  2. Certain items in the Pst/Ost storages will cause PersonalStorage.SplitInto to exit abnormally in the middle of progress!
    But the question is that how can I catch which item is causing this error to report to you?
    Seems Storage_ItemMoved event won’t work for .SplitInto hence can’t find the underlying item causing this!
    (No global internal logger for Aspose.Email to enable and diagnose the details?)
    Thanks :slight_smile:

  • Not sure if MessageAdded event is fired for this or not?!

Hello, @australian.dev.nerds,

Seems Storage_ItemMoved event won’t work for .SplitInto hence can’t find the underlying item causing this!

Have you checked it out? As far as I know, the ItemMoved event occurs when SplitInto is called. At least I checked it on my data and didn’t find any problem with handling this event!

Thank you.

1 Like

Hi,
Yep a ‘System.NotSupportedException’ occurred in Aspose.Email.dll on SplitInto
But e As ItemMovedEventArgs will not run for the said item, however, issues:

  1. When splitting Ost:
    The output created .ost, will have the following folders in root:
    Deleted Items/Inbox/Calendar/Contacts/Drafts/Journal/Notes/RSS Feeds/Tasks
    In addition to the 2 standard folders:
    Root - Public/Root - Mailbox
    If I’m not wrong, they shall be created inside:
    Root - Mailbox \ IPM_SUBTREE
    And not the root (for Ost only - for Pst root is correct)

  2. Certain items in the Pst/Ost storages will cause PersonalStorage.SplitInto to exit abnormally in the middle of progress!

Hi,
Please also add: when merging Ost files, the same thing will happen:
A folder named ‘Deleted Items’ will be added to the root.
It should be under: Root - Mailbox \ IPM_SUBTREE

It also happens that when we load an Ost and use PersonalStorage.CreatePredefinedFolder this happens.
Thanks

  • Update: Seems to be under one of these folders:
    Root - Mailbox~MAPISP(Internal)
    Root - Mailbox\Drizzle
    Root - Mailbox\Shared Data

Still could not catch it :frowning:

@australian.dev.nerds

I suspect this is because by splitting the OST we get PST anyway. We should to look into this, so I created a ticket.

Issue ID(s): EMAILNET-40970

Thanks.

1 Like

Thanks, but for merge and also adding predefined folder to an existing Ost, this should not happen, since existing Ost should remain Ost :slight_smile:

@australian.dev.nerds,
If you remember, SDK abilities do not allow to create OST files or edit OST by Outlook 2013 and higher. So after merging you get PST as well.
If you have a different case, please, share it.
Thank you.

Sure, but when splitting an OST and it’s going to be saved in PST format, the folder hierarchy should be like PST, am I right?
Currently, splitting OST to smaller PST chunks, will make PST files with OST hierarchy / folder structure!
That was what I meant :slight_smile:

@australian.dev.nerds,

I think it’s ok to keep the folder hierarchy as in OST.