Using the MailClient you can list folders, check their presence, as well as create and delete them:

Operations

listFolders

existsFolderPath

createFolderPath

deleteFolderPath