Hacking Gmail

(Grace) #1

78 Part II — Getting Inside Gmail


Listing 5-9(continued)

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

//--></script><script>var
fp=’341d292f3e55766f’;</script><script>var
loaded=true;D([‘e’]);</script><script>try{top.js.L(window,45,’
cb803471f1’);}catch(e){}</script>

What to make of these traces? First, you can see that to call the contents of the
Inbox, the browser requests two URLs. First, this one:

/gmail?ik=&search=inbox&view=tl&start=0&init=1&zx=z6te3fe41hmsjo

And next, this one:

/gmail?ik=&search=inbox&view=tl&start=0&init=1&zx=781ttme448dfs9

And second, it appears that the real workings of the Inbox are contained in the
JavaScript function that starts D([“t”]), as Listings 5-10 and 5-11 show.

Listing 5-10: With One Message

D([“t”,[“101480d8ef5dc74a”,0,0,”Jan 6”,”<span
id=\’[email protected]\’>Ben
Hammersley</span>”,”<b>»</b> ”,”Here\’s a nice
message.”,,[]
,””,”101480d8ef5dc74a”,0,”Thu Jan 6 2005_4:44AM”]
]
);
Free download pdf