Skip to content

How to Recover deleted mail items with MFCMAPI

When a user permanently deletes items, they become hard-deleted items. Unfortunately, you can’t see or recover these items in the Outlook app or Outlook on the web (OWA). With the MFCMAPI tool, the user can recover these messages, notes, tasks, or calendar items to any folder in their mailbox. In this article, you will learn how to recover deleted mail items with the MFCMAPI utility.

Recover deleted items with MFCAMPI utility

You can recover different deleted items in a mailbox with the MFCMAPI utility. These are the soft-deleted items and the hard-deleted items.

Soft-deleted items

Soft-deleted items are deleted from the Deleted Items folder to the Recover Deleted Items in Outlook. These mail items can be recovered using the Outlook app or using Outlook on the web (OWA).

These soft-deleted items will remain for a maximum of 30 days, depending on your deleted items retention period settings. In the MFCMAPI utility, you can find these soft-deleted items in the Deletions folder. You can export the items, recover the items to the Deleted Items folder, or copy the items to another folder in the user mailbox with MFCMAPI.

Hard-deleted items

Hard-deleted items are deleted from Recover Deleted Items in Outlook. These mail items can’t be seen and recovered from Outlook app or Outlook on the web (OWA).

In the MFCMAPI utility, you can find these hard-deleted items in the Purges folder. You can export the items, recover the items to the Deleted Items folder, or copy the items to another folder in the user mailbox with MFCMAPI.

Note: The advantage of the MFCMAPI tool is that the user can recover permanently deleted items that can’t be seen in Outlook. If you don’t want to use the MFCMAPI tool to recover deleted items, the admin can do the recovery in Exchange admin center and with PowerShell. Read the article How to Recover deleted items from Microsoft 365 mailbox.

In the steps below, we will focus on how to recover deleted items from the Purges folder of a user mailbox.

Step 1. Download MFCMAPI utility

The first step is to download the MFCMAPI utility, whether your Outlook app has an x32 bit or x64 bit.

  1. Go to MFCMAPI GitHub download page and check the latest releases
  2. Click the .exe file to download the MFCMAPI utility
Download MFCMAPI utility

Step 2. Run the MFCMAPI utility

The MFCMAPI tool is portable, so you don’t need to install the setup. Follow the below steps to open the MFCMAPI utility:

  1. Open or extract the downloaded MFCMAPI.exe zip file
  2. Double-click the application MFCMapi.exe
Open the application MFCMAPI
  1. Click Run
Run the MFCMAPI file

Step 3. View deleted mail items of a mailbox with MFCMAPI

Once you run the MFCMAPI utility, you will see the mailbox mail items in Outlook. To view deleted mail items of a single mailbox with MFCMAPI, follow these steps:

  1. Click OK on the welcome screen
Click OK on the welcome screen of MFCMAPI
  1. Click Tools > Options
Click Tools menu and choose Options in MFCMAPI
  1. Select Use the MDB_ONLINE flag when calling OpenMsgStore
  2. Select Use the MAPI_NO_CACHE flag when calling OpenEntry
  3. Click OK
Select options from the MFCMAPI window
  1. Click Session > Logon
Click Session to logon the user mailbox in MFCMAPI
  1. Select Outlook
  2. Click OK

Note: You need to set up an Outlook profile so you can select it in MFCMAPI.

Select the profile name in MFCMAPI
  1. Double-click on the user mailbox to view the content
Open the user mailbox to view the content in MFCMAPI
  1. Click on the small arrow to expand the Root Container
Expand Root Container in MFCMAPI
  1. Expand Recoverable Items
  2. Double-click on Purges to view the content
Expand Recoverable Items and click on Purges to view hard-deleted items in MFCMAPI

Step 4. Recover deleted mail items with MFCMAPI

The MFCMAPI tool shows the Recoverable Items of the user mailbox, which includes the soft-deleted items (Deletions) and hard-deleted items (Purges).

We will show you how to recover hard deleted mail items in two methods:

  • Export the mail item into a message (.msg) format from Purges
  • Copy the mail item from Purges and paste it to the user Inbox folder

Recover deleted mail item and export message

This method shows how to export the deleted mail item to a message file (.msg).

Follow the below steps to recover deleted mail item from the purges folder with MFCMAPI and export the message:

  1. Right-click on the message
  2. Click Export message
Export hard deleted message in Purges in MFCMAPI
  1. Select MSG file (UNICODE)
  2. Click OK
Save message to MSG file
  1. Select a folder
  2. Keep or change the file name
  3. Click Save
Save MSG file to folder
  1. Click OK
Recover deleted mail items with MFCMAPI
  1. Click OK
Recover deleted mail items with MFCMAPI
  1. Open the folder
  2. Double-click the email message
Recover deleted mail items with MFCMAPI
  1. Verify the message is exported correctly
Recover deleted mail items with MFCMAPI

Copy deleted mail item and move to user mailbox folder

Follow the below steps to copy the deleted mail item from the purges folder with MFCMAPI and move it to another folder of the user mailbox:

  1. Right-click on the message
  2. Click Copy messages
Recover deleted mail items with MFCMAPI and copy messages
  1. Go back to the user mailbox window
  2. Click on the small arrow to expand Top of Information Store
  3. Expand Inbox
  4. Right-click on the folder (In our example: Folder A)
  5. Click Paste
Recover deleted mail items with MFCMAPI and paste message in folder
  1. Click OK
Recover deleted mail items with MFCMAPI and copy message
  1. Double-click the folder (In our example: Folder A)
  2. Verify the message is moved to the folder
Recover deleted mail items with MFCMAPI
  1. Open Outlook of the user mailbox
  2. Check you recovered the deleted message to the folder (In our example: Folder A)
Recover deleted mail items with MFCMAPI

That’s it!

Read more: How to fix recover deleted items greyed out in Exchange Online »

Conclusion

You learned how to recover deleted items with MFCMAPI. First, download the MFCMAPI utility to access the Outlook recoverable items of the user mailbox. Next, you can open the purges folder and export the permanently deleted items. Another method is to copy the deleted items and paste the messages into the Inbox folder of the mailbox.

Did you enjoy this article? You may also like How to delete corrupted hidden Exchange inbox rules using MFCMAPI. Don’t forget to follow us and share this article.

o365info Team

o365info Team

This article was written by our team of experienced IT architects, consultants, and engineers.

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *