Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to revision-control my mail configuration (both the preferences and the mailbox rules -- especially the latter) but Mail insists on rewriting its preferences as binary plist files as soon as it opens. I'd like to have it keep them in text or XML format, which would allow me to keep them in revision control in a meaningful way. Yes, I could keep them as binaries, but those are awful and result in a lot of ugly changesets.

share|improve this question
Which revision control system? There may be a solution here. – Jason Salaz Jan 9 '12 at 17:31

Probably not, but you could use plutil to convert the binary plist to XML and keep the results in your revision control system.

share|improve this answer
git. So, presumably, it'd be possible to do it with a pre-commit and post-update hook? That might be interesting... – Chris R Jan 9 '12 at 19:15
However, I can't see a way to do this from the git hooks docs at; maybe I'm missing something? – Chris R Jan 9 '12 at 19:18
I would keep the XML files somewhere and write an install/build script to convert them to binary and to install them in Preferences etc. – Mark Sep 13 '13 at 20:02

Your Answer


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.