Converting a Mozilla Address Book into Pine Format
Requires: a decent shell plus awk. Basically, you require some
version of Unix running your computer. It has been tested under Linux
(Suse 8.0) with GNU Awk 3.1.1.
How to convert your Mozilla address book:
- In Mozilla, open the address book and export it as a tab delimited file, let say "ab.txt".
- Run my script: "mozab2pine < mozab.txt > pineab.txt".
- Check the contents of pineab.txt, make manual changes as necessary.
- Concatenate pineab.txt with your pine .addressbook file, which should be located in your home directory.
How to obtain the conversion script:
- Make sure awk is present.
- Download mozab2pine and mozab2pine.awk for free.
- Do a chmod +x mozab2pine.
- It removes quotes and backslashes using the stream filter tr.
- It executes mozab2pine.awk
- It sorts the result (by last name).
- For more information, check the source.
- It uses the fields first name, last name, display name and email of each record of the Mozilla exported addressbook.
- It rearranges them as TABlast name, firstnameTABdisplay name <email>.
- If fields are missing, it tries to reconstruct them from display name or email according to a simple heuristics.
- If email is missing, it ignores the record.
- For more information, check the source.
Good luck!