Not The Wizard

Oz Solomon's Blog

Tag: Outlook

When Outlook Doesn’t Archive Everything It Should

If you’ve ever used Outlook’s archiving feature, you may have noticed that a lot of emails that should have been archived are left behind.  For example, you tell it to archive anything older than Dec 31, 2014, yet emails older than that still remain in the original folder.

The reason for this is that Outlook’s default behavior is to archive based on the “Last Modified” date, which means that if you made any sort of modification to the email after the specified archive date then email won’t be archived.  What’s a modification?  It could be something as simple adding or removing a flag.  Supposedly some anti-virus apps also cause this date to change.

I think everyone’s intuitive understanding of the way archiving should work, is that the mail is archived depending on when you got/sent it, no matter what you did with it afterward.  Luckily, you can tell Outlook to use this more intuitive method by adding a simple entry to your registry.

The registry setting is called ArchiveIgnoreLastModifiedTime, and it’s registry location depends on the version of Outlook you’re using.

For Outlook 2007, please follow Knowledge Base article 2500686.  Make sure you have at least SP3 installed.

For Outlook 2010 or 2013, please follow Knowledge Base article 2553550.

See the Actual “To” Address in Outlook

My Outlook is connected to an Exchange account that accepts emails for multiple domains.  When I open up the emails, Outlook always displays my name in the To field, but doesn’t show which email (i.e. which domain) the mail was actually sent to.

I decided that manually checking the mail headers for this information was a dumb way to do things, so I wrote a little macro to automate this little task.  Hopefully some of you out there will find it useful.

Installation Instructions

  1. Press Alt+F11
  2. On the left hand side, expand the tree until you see ThisOutlookSession.  Make sure ThisOutlookSession is highlighted.
  3. Paste the code from below
  4. Close the Visual Basic window
  5. Attach the new macro to a toolbar item.  The way to do this varies with your version of Outlook.  For example, in Outlook 2007:
    1. Open any email
    2. Press the down arrow on the right side of the quick access toolbar
    3. Select “More Commands”
    4. In the “Choose Commands From” dropdown, select “Macros”
    5. Add the macro to the right hand side
    6. (Optional) Change the icon by highlighting the macro and selecting Modify.
  6. You can add the macro either to the “view email” screen as I explained above, or to the toolbar of the main inbox screen.



Added Dec 17: To ensure the macro isn’t blocked by the Outlook macro security settings, follow the instructions in this article to sign your own macros.

Multimedia Keyboards – How to Prevent Multiple Outlook Instances From Opening

Multimedia KeyboardIf you have a modern keyboard, it most likely has a Mail key on the top row which will launch your mail client.  I prefer to use this key not only as a means to launch my mail client, but also as a shortcut for switching to it.

Unfortunately, by default, if Outlook is your mail client, hitting the Mail key repeatedly opens multiple copies of Outlook.  Fortunately, the fix is easy:

  1. Launch the Registry Editor by hitting Win+R and typing regedit in the dialog box.
  2. When the Registry Editor opens, navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\15. (You should see the following value there: Association=mailto)
  3. From the Edit menu pick New -> String Value
  4. In Name, type ShellExecute
  5. In Data, type outlook.exe /recycle

That’s it!  You can now hit the Mail key multiple times.

I use Microsoft keyboards but this should hopefully work with other manufacturers’ keyboards as well.

Tip: Don’t install the special Microsoft Keyboard software that came with your keyboard or that is offered to you via Windows Update – it will mess things up.

© 2022 Not The Wizard

Theme by Anders NorenUp ↑