Hacking Gmail

(Grace) #1

Contents xv



  • Part I: Starting to Use Gmail Introduction xix

  • Chapter 1: Desktop Integration

  • Chapter 2: Integrating Your Existing Mail.

  • Chapter 3: Gmail Power Tips

  • Part II: Getting Inside Gmail

  • Chapter 4: Skinning Gmail

  • Chapter 5: How Gmail Works

  • Chapter 6: Gmail and Greasemonkey

  • Chapter 7: Gmail Libraries

  • Chapter 8: Checking for Mail

  • Chapter 9: Reading Mail

  • Chapter 10: Sending Mail

  • Part III: Conquering Gmail

  • Chapter 11: Dealing with Labels

  • Chapter 12: Addressing Addresses

  • Chapter 13: Building an API from the HTML-Only Version of Gmail.

  • Chapter 14: Exporting Your Mail.

  • Chapter 15: Using Gmail to

  • Chapter 16: Using GmailFS

  • Appendix: Long Code Listings

  • Index

  • Part I: Starting to Use Gmail Introduction xix

  • Chapter 1: Desktop Integration

  • New Mail Notification

  • Windows

  • Mac OS X

  • Linux, etc.

  • Redirecting mailto:

  • Windows

  • Multiplatform/Mozilla

  • OS X

  • GmailerXP

  • And Now

  • Chapter 2: Integrating Your Existing Mail

  • Importing Your Mail into Gmail

  • Gmail Loader

  • Setting Up Pop Access Inside Gmail

  • Setting Up Pop Within an Application

  • IMAP for Gmail

  • And Now

  • Chapter 3: Gmail Power Tips

  • Keyboard Shortcuts

  • Plus Addressing and Filtering

  • Other Addressing Tips

  • Quickly Mark a Group of E-Mails

  • Send Executables as Attachments

  • Advanced Searching

  • And Now

  • Part II: Getting Inside Gmail

  • Chapter 4: Skinning Gmail

  • Deconstructing Gmail

  • The Top Section

  • The Navigation Menu

  • The Activity Area

  • The Bottom Section

  • Applying a New Style

  • Creating Gmail Lite

  • Walking Through the Style Sheet

  • Removing Google’s Advertising

  • And Now

  • Chapter 5: How Gmail Works

  • What the Devil Is Going On?

  • Preloading the Interface

  • Introducing XMLHttpRequest

  • Using XMLHttpRequest Yourself

  • Finding XMLHttpRequest within the Gmail code

  • Sniffing the Network Traffic.

  • Firing Up Tcpflow

  • Prodding Gmail to Hear It Squeak

  • Preparing to Watch the Gmail Boot Sequence

  • Cleaning Up the Log

  • Stepping Through the Gmail Boot Sequence

  • Logging In

  • The First Cookie

  • Loading the Inbox

  • Reading an Individual Mail

  • And Now

  • Chapter 6: Gmail and Greasemonkey

  • What Is Greasemonkey?

  • The Userscripts

  • Displaying Bloglines Within Gmail

  • How It Works

  • Add a Delete Button.

  • GmailSecure

  • MailtoComposeInGmail

  • Other Userscripts

  • Mark Read Button

  • Multiple Signatures

  • Hide Invites

  • Random Signatures

  • And Now

  • Chapter 7: Gmail Libraries

  • PHP — Gmailer

  • Getting and Installing the Library.

  • How to Use It

  • Perl — Mail::Webmail::Gmail

  • Getting and Installing the Library.

  • Using the Library

  • Python — Libgmail

  • Getting and Installing the Library.

  • How to Use It

  • Reading the First Message in the Inbox

  • Setting Yourselves Up for the Remaining Chapters

  • And Now

  • Chapter 8: Checking for Mail

  • The Basics in Perl

  • The Basics in PHP

  • The Basics in Python

  • Building on the Basics

  • New Mail Count in RSS

  • New Mail Count to AOL Instant Messenger

  • And Now

  • Chapter 9: Reading Mail

  • Reading Mail with Perl.

  • The Basics

  • Accessing All the Data of a Message

  • Listing the Mail and Displaying a Chosen Message

  • Dealing with Attachments.

  • Making an RSS Feed of Your Inbox

  • And Now

  • Chapter 10: Sending Mail

  • Sending Mail with Gmail SMTP

  • Sending Mail with Perl

  • And Now

  • Part III: Conquering Gmail

  • Chapter 11: Dealing with Labels

  • Listing the Existing Labels

  • Setting New Labels.

  • Creating a New Label

  • Removing Labels

  • And Now

  • Chapter 12: Addressing Addresses

  • The Contacts List

  • Importing Contacts.

  • Showing Your Current Contacts

  • Exporting Contacts.

  • And Now

  • Chapter 13: Building an API from the HTML-Only Version of Gmail

  • A First Look at the HTML Version

  • Introducing Basic Scraping

  • HTML::TokeParser

  • Parsing the Inbox

  • Retrieving the Individual Page.

  • Dealing with Threads

  • Dealing with Other Folders

  • And Now

  • Chapter 14: Exporting Your Mail

  • Exporting as a Massive Text File

  • Converting to Mbox

  • Appending to IMAP

  • And Now

  • Chapter 15: Using Gmail to

  • Using Gmail as a To-Do List

  • Using Filters

  • Using gmtodo

  • Using Gmail to Find Information in RSS Feeds

  • Using Gmail to Find Torrent Files

  • Using Gmail as a Notepad

  • Using Gmail as a Spam Filter

  • An Even Simpler Way of Doing It

  • Using Gmail as Storage for a Photo Gallery

  • And Now

  • Chapter 16: Using GmailFS

  • The Underlying Idea

  • Installing GmailFS

  • The Correct Python

  • Installing FUSE

  • Installing Libgmail.

  • Installing GmailFS

  • Using GmailFS

  • Mounting GmailFS from the Command Line

  • Mounting GmailFS from fstab

  • Passing Commands to the File System

  • How GmailFS Works

  • What Makes Up a File?

  • Representing All of This in E-Mail

  • The Actual Data in Action

  • And Now

  • Appendix: Long Code Listings

  • Index

Free download pdf