Hacking Gmail
Gmail Libraries I n the previous chapters, you discovered how Gmail works: how it loads into your browser, and how it handles yo ...
118 Part II — Getting Inside Gmail PHP — Gmailer Yin Hung Gan’s Gmailer library is the obvious choice for PHP coders. Gan wrote ...
Chapter 7 — Gmail Libraries 119 How to Use It Gmailer provides a series of methods that can be used to log in to Gmail and per- ...
120 Part II — Getting Inside Gmail Table 7-1(continued) Method Function GMailSnapshot get To get a snapshot, an object (see GMai ...
Chapter 7 — Gmail Libraries 121 Then you set the setLoginInfomethod, giving the username, password, and time zone from GMT: $gm- ...
122 Part II — Getting Inside Gmail Assuming you’re logged in, request the Inbox like so: $gm->fetchBox(GM_STANDARD, Inbox, 0) ...
Chapter 7 — Gmail Libraries 123 Constant Description GM_ACT_TRASH Move message to or away from the Trash. GM_ACT_UNTRASH GM_ACT_ ...
124 Part II — Getting Inside Gmail Table 7-3(continued) Index Description Id Conversation ID. is_read 0 = read; 1 = not read yet ...
Chapter 7 — Gmail Libraries 125 Index Description recv_email E-mail address of the receiver. reply_email Replying address of thi ...
126 Part II — Getting Inside Gmail Once you’ve requested the Inbox and created a Snapshot, you can query that Snapshotfor detail ...
Chapter 7 — Gmail Libraries 127 Perl — Mail::Webmail::Gmail CPAN, the directory of Perl modules, lists quite a few Gmail-related ...
128 Part II — Getting Inside Gmail Using the Library The Mail::Webmail::Gmail module is remarkably simple to use and very thor- ...
Chapter 7 — Gmail Libraries 129 Function What It Does edit_labels( label => Deletes the label ‘label_name’. ‘label_name’, act ...
130 Part II — Getting Inside Gmail Table 7-4(continued) Function What It Does $gmail->get_messages Retrieves a reference to a ...
Chapter 7 — Gmail Libraries 131 Function What It Does send_message( to => Sends a message to a single recipient. ‘user@domain ...
132 Part II — Getting Inside Gmail FIGURE7-3: Python’s Libgmail binding You should follow the instructions on their website to i ...
Chapter 7 — Gmail Libraries 133 getMessagesByFolder The getMessagesByFoldermethod takes the name of the folder, and an optional ...
134 Part II — Getting Inside Gmail getQuotaInfo The getQuotaInfomethod allows you to retrieve information on how much storage yo ...
Chapter 7 — Gmail Libraries 135 quotaInfo = ga.getQuotaInfo() quotaMbUsed = quotaInfo[QU_SPACEUSED] quotaMbTotal = quotaInfo[QU_ ...
136 Part II — Getting Inside Gmail You will also need the following Perl modules installed: libwww-perl:http://search.cpan.org/ ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf