Outlook 2010 – Switch between “Showing Unread and/or Flagged Items” and “Showing All Items”

I like to limit my emails to messages I’ve not read and the ones I have flagged.  Sometimes though I want to see all the email.  There’s a quick and easy way to alternate between views.

Below I’ll show you screen shots of how you can do it.

But basically, you’ll create two views. One filters and one does not. Then you’ll just switch between them.

  1. Click on “View” Ribbon Tab
  2. Click on “Change Views”
  3. Click on “Manage Views”

 

image

Assuming your current Inbox view is what you want when you “Show All”.

  1. Highlight “Current View Settings”
  2. Click Copy
  3. Change the name to “All”
  4. Click Ok

 

image

Repeat again but this time name it “Unread or Flagged”

image

 

You should now have two new views in the list. 

  • All
  • Unread or Flagged

image

 

  1. Click on UnRead Or Flagged.
  2. Click on Modify
  3. Click Filter
  4. Click on the SQL Tab
  5. Click on the Checkbox “Edit these critera directly…”
  6. Type this into the filter box:

    ("urn:schemas:httpmail:read" = 0) OR ("http://schemas.microsoft.com/mapi/proptag/0x10900003" > 1)

  7. Click Ok, Click Ok, Click Ok

 

image

 

That’s all for the setup.

Now to switch between views, just click on “Views” and “Current View" and change between them.  If you are on Unread and switch to all, Outlook will keep the email you were looking at highlighted.

 

image

Works on My Machine

 

A common phrase we developers say when an application we develop breaks for someone else.

Found this image on DevExpress’s Code.Google.Com for plugin’s and found it amusing. Think I’ll add it to my QA releases. 

Stamped and Approved:

works-on-my-machine-starburst_3

Tip Of the Day - Remove Duplicate Items from a List(Of T) (or a List of whatever the hell you want)

If you need to remove duplicates from a from a collection that implements IEnumerable without iterating through or overriding the .equals method you can do the following:


Dim Cars As New List(Of String)(New String() {"Blue", "Red", "Yellow", "Red", "Black", "Blue"})
Cars = Cars.Distinct().ToList()

Your list can be of anything you want. Strings, objects etc.. you can just for duplicates with the Distinct().ToList() method.

Tip of the Day

In asp.net instead of

Response.End

Use

HttpContext.Current.ApplicationInstance.CompleteRequest()