Imported IMAP folders: Outlook does not contain emails

3 December 2020 Off By Rached CHADER

During an exchange migration, we are often faced with IMAP mailboxes, when you have exported to a PST file once you open in Outlook, the folder will be empty “no mail visible”.

You will have the same behavior if you export your PST to a mailbox on Exchange online, or when you want to consult it from your smartphone.

This guide contains a script that you can run to apply the fix automatically

The Folder Class property is set to IPF.Imap instead of IPF.Note .

This has various side effects, visual issues, and functionality issues such as:

  • You do not have monitoring indicators such as: Today, Tomorrow, This week, etc., for these imported cases.
  • You will see a “Filter applied” message in the lower left corner of the status bar.
  • When you switch to the View tab and press the Change View button, you will see views specific to IMAP accounts.
  • Folders are not visible when you sign in to your mailbox through Exchange ActiveSync on your smartphone or tablet.

Solution

The script below will fix the wrong folder class property for you to revert to a normal mail folder just like everyone else.

After running the script, you will immediately see all of your emails again, have tracking flag support, and all other issues mentioned above will be gone.

You don’t even need to restart Outlook!

The script allows you to fix a single folder, a folder and its subfolders or your entire mailbox at a time.

It will automatically recognize files that do not require correction and will not make any changes to them either.

  • Open a text editor and paste the following script:

  • Save your document by replacing the extension .txt in .vbs
  • Run your script
  • Click Outlook on the taskbar to display the “Select Folder” dialog box.
  • Select the folder you want to correct and press OK.
  • You will now receive a prompt indicating whether you want to include the subfolders as well. If you don’t see this prompt, click the script icon on your taskbar.
  • When the script is complete, you will receive a notification indicating the number of cases fixed.
  • The contents of all folders should now be visible again and you should no longer have an IMAP view or any of the other issues mentioned above.

Visits: 2370