Since I’m now a mutt user, I needed to find an address book I could use for it. That’s where abook comes in. abook is a simple program designed for use with mutt; specifically to store and retrieve email addresses (though from the CLI abook offers more functionality)
This is the code I added to my .muttrc file.
set alias_file=~/.mutt/aliases
source ~/.mutt/aliases
set query_command= "abook --mutt-query '%s'"
macro index,pager A "
Here’s the breakdown:
set alias_file=~/.mutt/aliases – Changes the default file to save all of your addresses.
source $alias_file – To make the auto completition work, you need to source the alias file. (This could also read: source ~/.mutt/aliases but I prefer to use variable expansion.
set query_command= “abook –mutt-query ‘%s'” – enables the address book