Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I would like to search within an individual email message using OS X Mail version 5.3 or above (Lion, Mountain Lion). I would like this search to include the email header.

Using Edit > Find > Find… (Command-F) I am able to search the entire message, exclusive of the header. I would like to search the header, also.

An example of how this would be used: An email message is sent to hundreds of recipients which you want to search to find a specific email address.

share|improve this question

1 Answer

The search bar in Mountain Lion's mail allows you to do a very minimal amount of searching in the headers (for example, you can search on to:, but not cc: or reply-to:). As a result, I think that you're firmly in AppleScript territory to accomplish this task.

Depending on how specific your goal is, you might find some existing AppleScripts that already meet your needs. The archives of the AppleScript users mailing list is probably a good starting point, there are plenty of Apple Mail scripts there.

If this is really important to you, you might want to consider trying out Outlook:Mac. It has a significantly better AppleScript dictionary than Mail.app, and you might be able to meet your goal in that application better than in Mail.app.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.