Outlook IMAP Weirdness
Â
The implementation of IMAP in Outlook leaves so much to be desired. The default views include “Hide Messages Marked for Deletion” and “Group Messages Marked for Deletion”. These views work via an Outlook Field called “IMAP Status”. What I love is that this field is NOWHERE to be found within the field listings. It seems that you can’t manually create a rule using this field.
I think I may have stumbled upon the solution. Click on More for all the details.
If you go to View/Arrange By/Current View/Define Views, select the “Hide Messages Marked for Deletion” view and hit Modify. Click on Filter. Go to the SQL tab, and you’ll see some SQL code that apparently represents the Advanced filter.
You’ll see a check box for “Edit these criteria directly.” and you’ll see that you can change the behavior of this view using the SQL statement.
The default statement is:
“http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/85700003” = 0

You can see it in the above screen shot.
Be sure to Cancel out when you are done, as to not save any changes. You don’t want to break the default view. We’ll want to copy the view before making the required changes.
I simply wanted to create a view for Deleted Items and Not, so the “Hide Messages Marked for Deletion” was correct for one side of that. I wanted the other side. I can simply copy the “Hide Messages Marked for Deletion” view to a new view called “Deleted Items”, and Modify. Go to the SQL tab, and check the box for “Edit these criteria directly.”
We’ll then change the ‘0’ to a ‘1’ in the above statement. The new line will look like:
“http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/85700003” = 1
This seemed to work for what I wanted. Your mileage may vary.