24.07.2017 Views

Hacking Gmail

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Addressing<br />

Addresses<br />

chapter<br />

<strong>Gmail</strong>’s mastery of your e-mail wouldn’t be of much use<br />

without an address book. Lucky for us, <strong>Gmail</strong> provides a<br />

perfectly functional one. Indeed, it was the address autocompletion,<br />

where you can start typing a known address and have<br />

it appear automatically within the To: field of a new mail, that<br />

first excited the <strong>Gmail</strong> beta testers. As an example of Ajax programming,<br />

it was, at the time, second to none.<br />

The auto-completion system gets its addresses from, and is centered<br />

on, the <strong>Gmail</strong> Contacts list. In this chapter, you learn how<br />

to control the Contacts list from your own programs.<br />

The Contacts List<br />

The Contacts list is accessed from the link on the left of your<br />

<strong>Gmail</strong> screen. It looks, if you’re logged into my system at least,<br />

very much like Figure 12-1.<br />

As far as an address book goes, it’s pretty simple. But combined<br />

with the auto-complete function, it provides a very useful way of<br />

dealing with your (or at least my) failing memory when it comes<br />

to e-mail addresses.<br />

Adding and managing contacts from your browser is obvious and<br />

far below your geeky level, so let’s go straight to the scripting.<br />

in this chapter<br />

˛ Importing contacts<br />

˛ Displaying contacts<br />

˛ Exporting contacts

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!