found drama

get oblique

Yours Truly: Signature in Apple Mail

by Rob Friesel

A few months ago in my “pre-packaged Apple apps vs. Mozilla equivalents” round-up, I made mention of how Apple’s Mail (or the dreaded “Mail.app” if you prefer) application had mediocre signature support. My criticism went something like:

Pain in the butt. Can’t reference external files and what’s worse, you can’t edit the HTML source of the sig. So those fancy inline CSS styles you wanted to use are pretty much out. (You can copy/paste them in but chances are you’ll lose half of what you wanted.) -1

This has turned out to be only partially true. Through some of my toying around, I discovered that if I created an external HTML file, opened it in Safari, copied from there, then pasted into Mail’s signature edit window I would get a close approximation of what I’d created. It might add an extra line break in the process or otherwise “re-interpret” my code but it seemed a small price to pay.

This led me to the conclusion that Mail was using WebKit to render the HTML in email messages. (No surprises there.) But big deal right? Anyone could have arrived at that conclusion and it still doesn’t change the fact that Mail doesn’t have robust support for your fancy CSS-based signatures.

Until I stumbled across this article about the problem over at AllForces.com. Full details are over there but I’ll break down the short version here:

  1. Make your signature in your favorite text editor (use in-line CSS styles)
  2. Open it in Safari
  3. Save as “Web Archive”
  4. Find your existing crappy signature’s filename (hint: it’s in ~/Library/Mail/Signatures)
  5. Rename that Web Archive from Safari to the one Mail gave to your previous crappy signature
  6. Copy the renamed Web Archive from wherever you saved it to the Signatures folder and be done with it

I still want a Camino-equivalent of Mail.  But for now, I’ll take this.

About Rob Friesel

Software engineer by day. Science fiction writer by night. Weekend homebrewer, beer educator at Black Flannel, and Certified Cicerone. Author of The PhantomJS Cookbook and a short story in Please Do Not Remove. View all posts by Rob Friesel →

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*