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:
- Pine nicknames are translated into Mutt's aliases.
- Pine full names are preserved.
- Pine comments are preserved.
- Pine Fcc data is translated into Mutt's fcc-hook commands.
- Support for Pine's recursive nicknames, one level deep. This is to
facilitate Mutt's fcc-hook command, which doesn't work with aliases.
GNU General Public License
This is the script. Save it as
A typical Pine address book entry:
johnny Doe, John B. firstname.lastname@example.org example-folder Office: 1234 Avenue Blvd. Phone number: 911-411
#Office: 1234 Avenue Blvd. Phone number: 911-411
alias johnny \"John B. Doe\" <email@example.com>
fcc-hook "~C johndoe@example\.com" "+example-folder"
WARNING: This will overwrite any existing ~/.mutt/addresses.pine file.
./pinebk2muttbk.pl < .addressbook > ~/.mutt/addresses.pine
You can then add the line
to your ~/.muttrc file.