I don't think that will work for user defined folder.
If the user has created a folder like "test" which has the same level as that of the "Inbox" folder then what will be the input there.
Currently I am looking into the following:
Migration from Outlook to any other mail program