Neat Mail.app Trick for Sender Images

Mac OS X Lion

I've been holding onto this for quite a while, but it's a really nice component of Mail.app on Mac OS X. If you have entries in your Address Book then Mail.app puts their picture in the corner of your mail messages. It's a neat little way to "see" the people that are emailing you. But what if you have a lot of mailing lists, or stuff like that? You don't want to have them in your Address Book. Well… you don't have to.

This posting reminds us that we can simply create a directory of images, and with properly named TIFF files, we can give Mail.app all the information it needs to match up images to senders. Simply:

  $ cd ~/Library/Images
  $ mkdir People

then, for every email address you want to have associated with an image, make a file in that directory with the name: email_addr.tiff. So if you wanted to have an image for everything coming from yoyo@gimme.com, you'd place a TIFF file in the People directory named yoyo@gimme.com.tiff. Simple.

Restart Mail.app and it'll see the images and you're in business. Very slick.