How to use the Gmail contacts within Alpine/pine

address-bookalpine-mailemailgmailgmail-contacts

How can I use my Gmail contacts within Alpine/pine?

Best Answer

An alternate way of importing your Google contacts is using pull_contacts.py.

This script will:

  1. perform a GData query to retrieve all the contacts; and
  2. print them in alpine's addressbook format.

So, to add all of your Google contacts to the addressbook, simply:

  python pull_contacts.py aphacker@gmail.com >> .addressbook

The main advantage of this method over the one described by DaveParillo is the added support for non-latin1 characters. If you're like me and have a lot of people with accented letters in their names, this script is a God-send -- you won't have to go through the list manually replacing ? with the right latin1 letter.

Note that the script requires the GData libraries.

Related Question