Hacking Gmail

(Grace) #1

Chapter 7 — Gmail Libraries 125


Index Description

recv_email E-mail address of the receiver.
reply_email Replying address of this message.
dt_easy Arrival date/time of this message in easy format, such
as 9 Aug (2 days ago).
dt Arrival date/time of this message in long format, such
as Mon, 9 Aug 2004 19:34:03 +0800.
subj Subject of this message.
is_starred Is the message starred?
[0.6.4]
snippet Snippet, or preview, of this message.
body Message body.
attachment Number-indexed array. An array of attachment
information, which is a text-indexed array of the
following:
Index Description

id Attachment ID.
filename Filename of this attaching file.
type File type (such as JPG, GIF, PDF) of
this attaching file.
size Size in bytes of this file.
Example: $snapshot-
>conv[3][“attachment”][1][“size”]
(size of the 2nd attaching file of the 4th
messages of current conversation)

Properties available to Snapshot type GM_CONTACT


Property Description


contacts_all Number-indexed array. Array of entries(see the table that follows) of your
All address book.


contacts_freq Number-indexed array. Array of entriesof your frequently mailed address
book:
Index Description.


name Name (nickname).
email E-mail address.
notes Notes.
is_freq 0 = not frequently mailed; 1 = frequently mailed.
Free download pdf