Hacking Gmail

(Grace) #1

Chapter 5 — How Gmail Works 79


Listing 5-11: With Three Messages

D([“t”,[“101865c04ac2427f”,1,0,”4:06pm”,”<span
id=\’[email protected]\’>Ben
Hammersley
”,”» ”,”This is the
third message
”,,[]
,””,”101865c04ac2427f”,0,”Tue Jan 18 2005_7:06AM”]
,[“101865b95fc7a35a”,1,0,”4:05pm”,”<span
id=\’[email protected]\’>Ben
Hammersley
”,”» ”,”This is the
second message
”,,[]
,””,”101865b95fc7a35a”,0,”Tue Jan 18 2005_7:05AM”]
,[“101480d8ef5dc74a”,0,1,”Jan 6”,”<span
id=\’[email protected]\’>Ben
Hammersley”,”» ”,”Here\’s a nice
message.”,,[“^t”,”Heads”]
,””,”101480d8ef5dc74a”,0,”Thu Jan 6 2005_4:44AM”]
]
);


From looking at these listings, you can deduce that the Inbox structure consists of


one or more of the following arrays (I’ve added in line breaks for clarity):


[
“101480d8ef5dc74a”,
0,
0,
“Jan 6”,
Ben
Hammersley
”,
» ”,
“Here\’s a nice message.”,
,[]
,””
,”101480d8ef5dc74a”
,0
,”Thu Jan 6 2005_4:44AM”
]


From further deduction, where I sent different types of e-mail to Gmail and


watched what it did — I’ll omit all of that here for the sake of brevity, but you


should have the idea — you can see that the array consists of the following:


[
“101480d8ef5dc74a”, -> The message id.
0, -> Unread=1, Read=0
0, -> Starred=1, plain=0

Free download pdf