pine2squirrel:

This is a quick and dirty perl script I slapped together to convert a pine addressbook to a SquirrelMail one.

It takes a few options:

-h:  Prints out usage
-q:  Makes the script query you if it isn't able to guess an entry's name
-a addressbook: Lets you specify an addressbook other than .addressbook
-o outputfile: Dumps the addressbook to this file, needed with -q

It dumps the new address book to stdout by default. So something like this would be a simple example:

./pine2squirrel > username.abook

You'd then have to move the addressbook to your squirrelmail data directory.

A more complex example:

./pine2squirrel -q -o username.abook

Which will query you on names it can't guess, and then write the output to the file 'username.abook'.

Let me know if you have success (or failure) with it.

pine2squirrel.pl