Several users noticed the Delete button was missing when a message was selected in the Inbox:
I recently switched email accounts and the Delete button is disabled and some of my messages are missing. The Delete key on the keyboard will delete messages, only the Delete button in the Home ribbon and the right-click menu for selected e-mail(s) is disabled.
This is the result of exporting an IMAP data file to a pst file or opening IMAP pst files in Outlook. The folders retain certain IMAP features, one of which is the Delete button doesn't work as expected. (In IMAP, it purges.) To fix it, you need to edit the Inbox folder using MFCMAPI and change the PR_CONTAINER_CLASS to IPF.Note.
- Get MFCMAPI . If you have 64 bit office, you need 64 bit MFCMAPI.
- Open MFCMAPI, go to Session, Logon
- Select your profile
- Double-click on the affected data store.
- Expand Root - Mailbox
- Expand Top of Information Store or IPM_Subtree
- Select Inbox
- Look for PR_CONTAINER_CLASS in the right pane, double-click on it.
- Change IPF.IMAP to IPF.Note then click OK to close the dialog.
- Repeat for each folder that was exported from an IMAP data file.
- When you are finished, close the MFCMAPI window, click Session, Logoff on the last MFCMAPI window.
Video Tutorial
Use VBScript to change the selected folder
To use, copy and paste into Notepad then save with the .vbs extension. Select the folder you need to change then double click to run it the VBS.
PropName = "http://schemas.microsoft.com/mapi/proptag/0x3613001E" Value = "IPF.NOTE" Set oOutlook = CreateObject("Outlook.Application") Set oFolder = oOutlook.ActiveExplorer.CurrentFolder Set oPA = oFolder.PropertyAccessor FolderType = oPA.GetProperty(PropName) 'MsgBox (FolderType) If FolderType = "IPF.Imap" Then oPA.SetProperty PropName, Value End If
Hi, Diane. I installed Outlook on a new machine and added my IMAP (Google) account. I have 2-3 folders I can't delete or rename. I'm using MFCMAPI but do not have "Top of Outlook Data File" and see all my folders (including the ones I want to delete), but do not have a property called "PR_CONTAINER_CLASS..." listed at all. I have CONTAINER_CONTENTS and CONTAINER_HIERARCHY. I do not see where to change the property value you described from from IPF.MAPI to IPF.NOTE. Can you help, please!?
Great article really helped me. Thank you!
Thank you! This worked beautifully.
Once my 72 year old brain got the starting point this was such a helpful process and with an amazing outcome of a fix...thanks so much.
Ed
PS with this outcome, could it be that I have mail on a server somewhere instead of my computer...... One of the strange things I noticed when I installed Office on my new computer was a sudden influx of very old mail as it transitioned from the older computer on POP3 to IMAP
Thanks again
Thank You so Much!
This is absolutely amazing. I spent a few evening looking for it. Great. Thank You. God Bless You
This was amazing. Worked like a charm. Your instructions were PERFECT. I spent hours searching for a cure to this issue and it only took me 30 minutes to fix. AMAZING. I cannot thank you enough.
These instructions worked perfectly! Thank you.