A tiny shell script for querying OSX's Address Book (Contacts.app) from the Mutt email client.
I wrote it because contacts was not working correctly for me.
Copy the script in your ~/.mutt
directory and make it executable (chmod +x ~/.mutt/abquery.sh
). Then, add the following lines in your ~/.mutt/muttrc
(or ~/.muttrc
, if you prefer) configuration file:
set query_command = "~/.mutt/abquery.sh '%s'"
bind editor <Tab> complete-query
Run mutt
and press m
to start a new message. Type the first letters of your contact's name or email address and hit 'Tab'. The same applies to all To:, Cc: and Bcc: prompts in Mutt.
This script is licensed under the ISC license.