pinebk2muttbk.pl Home Page

What is this all about?

Here is a perl script that I quickly and sloppily hacked together so that I could use my Pine address book in Mutt. In the spirit of Open Source, this script is being made available for free so that the time spent developing it doesn't need to be spent again elsewhere.

Here are some features of pinebk2muttbk.pl:

License

GNU General Public License

Download

This is the script. Save it as pinebk2muttbk.pl

Example

A typical Pine address book entry:
johnny	Doe, John B.	johndoe@example.com	example-folder	Office: 1234 Avenue Blvd. Phone number: 911-411
pinebk2muttbk.pl Output:
#Office: 1234 Avenue Blvd. Phone number: 911-411
alias johnny \"John B. Doe\" <johndoe@example.com>
fcc-hook "~C johndoe@example\.com" "+example-folder"
Example Usage:
./pinebk2muttbk.pl < .addressbook > ~/.mutt/addresses.pine
WARNING: This will overwrite any existing ~/.mutt/addresses.pine file.

You can then add the line

source ~/.mutt/addresses.pine
to your ~/.muttrc file.