Imported IMAP folders are not visible or don’t show any content

Can’t see your messages or folders after importing them from an IMAP export backup? You can easily fix this by running a script or by modifying the folder properties manually via MFCMAPI.