KB1001: Missing folders in Microsoft 365 and Outlook.com
Problem
Section titled “Problem”For a Microsoft 365 or Outlook.com mailbox, individual folders and their subfolders are not archived, although Outlook on the web shows them. No error message appears.
This affects folders that originally come from an IMAP account, e.g. after an import from another email account. At Microsoft, such folders may have a different internal folder type (IPF.Imap). Microsoft then does not provide them via the Graph API, which Vanderplanki uses.
After the setup, check whether all folders are archived: Open the job, click “…” next to Folders and then Show Effective Folders. Make sure that all folders are listed there (except the excluded ones, e.g. Deleted Items).
Solution
Section titled “Solution”You can fix the problem in one of the following ways:
-
In Outlook on the web: Rename the affected folder, create a new folder with the original name and move all emails into it. Don’t move the folder itself, because it keeps its type when moved. Create subfolders anew as well.
-
With MFCMAPI (Windows): Microsoft describes how to correct the folder type directly: Cannot view mailbox folders after IMAP migration. The article refers to the migration of company mailboxes, but the cause is the same. Proceed with caution, because MFCMAPI intervenes deeply in the mailbox.
-
With a script (Windows, classic Outlook): A guide on robert365.com offers a script that corrects the folder type. Customers have had good experiences with it.
On the next run of the job, Vanderplanki then archives the emails as well.