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.
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.