<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; mail</title>
	<atom:link href="http://www.sajithmr.me/tag/mail/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Project Team &#8211; Funny Quotes</title>
		<link>http://www.sajithmr.me/the-project-team-funny-quotes</link>
		<comments>http://www.sajithmr.me/the-project-team-funny-quotes#comments</comments>
		<pubDate>Sun, 30 Nov 2008 14:28:21 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[forward]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[marketting]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[tester]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=377</guid>
		<description><![CDATA[Recently some quotes struck my mind from a forwared email. It is basically , i think, 100% true , even though described in as a  funny way. See: Project Manager is a Person who thinks nine Women can deliver a baby in One month Developer is a Person who thinks it will take 18 months [...]]]></description>
			<content:encoded><![CDATA[<p>Recently some quotes struck my mind from a forwared email. It is basically , i think, 100% true , even though described in as a  funny way.</p>
<p>See:</p>
<ol>
<li><strong>Project Manager</strong> is a Person who thinks nine Women can deliver a baby<br />
in One  month</li>
<li><strong>Developer</strong> is a Person who thinks it will take 18 months to deliver a Baby.</li>
<li><strong>Onsite Coordinator </strong>is one who thinks single Woman can deliver nine<br />
babies in  one month</li>
<li><strong>Client</strong> is the one who doesn`t know why he wants a baby</li>
<li><strong>Marketing Manager</strong> is a person who thinks he can deliver a baby even<br />
if no  <span id="lw_1228054037_0">man  and woman</span> are available</li>
<li><strong>Resource Optimization Team</strong> thinks they don`t Need a man or<br />
woman;They`ll  produce a child with zero resources</li>
<li><strong>Documentation Team</strong> thinks they don`t care whether the child is<br />
delivered,  they`ll just document 9 months.</li>
<li><strong>Quality <span id="lw_1228054037_1">Auditor</span> </strong> is the person who is never happy with the PROCESS to<br />
produce a baby.And  lastly&#8230;&#8230;</li>
<li><strong>Tester </strong>is a person who always tells his wife that this is not the Right baby</li>
</ol>
<p><span style="color: #c0c0c0;"><em>Courtesy: Some Forwared Email</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/the-project-team-funny-quotes/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Gmail Architecture</title>
		<link>http://www.sajithmr.me/gmail-architecture</link>
		<comments>http://www.sajithmr.me/gmail-architecture#comments</comments>
		<pubDate>Tue, 25 Mar 2008 19:53:31 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/gmail-architecture/</guid>
		<description><![CDATA[Gmail is the best application website i ever seen. Simple implementation, Super Ajax, Cute Chatting, Status Messages, Fast Mail Checking, Live updating and its features are endless as my wordpress database wont withstand when you type: www.gmail.com, the following action will happen. See it is very interesting. Script1 It first load the javascript file : [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/gmail-logo1.jpg" alt="Gmail Logo" /><br />
Gmail is the best application website i ever seen. Simple implementation, Super Ajax, Cute Chatting, Status Messages, Fast Mail Checking, Live updating and its features are endless as my wordpress database wont withstand</p>
<p>when you type: www.gmail.com, the following action will happen. See it is very interesting.</p>
<p>Script1<br />
<u>It first load the javascript file : https://mail.google.com/mail?view=page&amp;name=browser&amp;ver=1k96igf4806cy</u></p>
<p>It checks the browser type, os etc</p>
<p>the function <strong>navigator.userAgent.toLowerCase()</strong> checks with <font color="#008000">opera, msie,mac,gecko,safari,palmsource,regking,windows ce,avantgo,stb,pda; sony/com2</font>  etc browsers</p>
<p>that is script 1&#8242;s job.</p>
<p><u>Script 2 calculate the round trip time for a 1 pixel image.</u> This is for finding the internet speed of the user</p>
<p><font color="#008000"><strong>function</strong></font> GetRoundtripTimeFunction(start)<br />
{<br />
<strong><font color="#008000"> return </font></strong><font color="#008000"><font color="#000000">f</font></font>unction()<br />
{<br />
<font color="#008000"><strong>var </strong></font>end = (new Date()).getTime();<br />
SetGmailCookie(&#8220;GMAIL_RTT&#8221;, (end &#8211; start));</p>
<p>}<br />
}</p>
<p><u>Since gmail uses iframes , this script also make sure to load the actual home</u><br />
<strong><font color="#008080">top.location = self.location.href</font></strong></p>
<p><strong>I</strong>t also set cookie to show which of the google service is using.</p>
<p><strong>T</strong>hen loads the login form and set focus on password field.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/gmail-login.jpg" alt="Gmail Login" /></p>
<p><u>Script 3 handles the https connection and cookie settings for secured login</u></p>
<p><em>Yet the web 2.0 concept is on the peak, gmail uses table layout design instad of div style designs <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p>Gmail&#8217;s login form &#8216;s action is pointing to <font color="#ff6600">&#8220;https://www.google.com/accounts/ServiceLoginAuth?service=mail&#8221;</font></p>
<p>This is the general url for google account login. Here <strong>service=mail</strong> parameter indicates , this is gmail logging</p>
<p>When the logging verification done, the page is redirected into corresponding service by javascript:</p>
<p><font color="#0000ff">location.replace(&#8220;http://www.google.co.in/accounts/SetSID?&#8230;&#8230;etc etc&#8221;);</font></p>
<p>After setting proper session and cookies for login, the non secured site http://mail.google.com/mail page automatically get refresh by this meta tag:<br />
<font color="#339966"> &lt;meta content=&#8221;0;URL=http://mail.google.com/mail/&#8221; http-equiv=&#8221;Refresh&#8221;/&gt;</font></p>
<p>When loading the mail page after setting proper login sessions, around 28 ajax web request begin to start, and load all the mails, labels, channels etc</p>
<p>The above mentioned all javascript  is also here in this mail loading page</p>
<p>The first division (div) inside the body tag is that for loading. A while text &#8220;loading&#8230;&#8221; with red backgroud.<br />
<strong> &lt;div class=&#8221;msg&#8221;&gt; <font color="#000000">Loading… </font>&lt;/div&gt;</strong></p>
<p>This is the waiting symbol for all the ajax call to load</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/loading.jpg" alt="Loading" /></p>
<p>There is also a timer is working to check the loading time of ajax requests. If it takes more time than expected  (or calculated), it show this error <em>&#8220;This seems to be taking longer than usual&#8221;</em></p>
<p>Automatically they provide navigation links for basic html version.</p>
<p>The total page of gmail is created by a set of iframes<br />
viz</p>
<p>HIST_IFRAME<br />
SOUND_IFRAME<br />
CANVAS_IFRAME<br />
JS_IFRAME</p>
<p>The Sound_Iframe session loads a flash object (shock wave file) for playing the sound , when chat works. (Google chat indicator)</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/chatwindow.jpg" alt="Chat window" /></p>
<p><strong><font color="#339966">&lt;embed id=&#8221;flash_object&#8221; type=&#8221;application/x-shockwave-flash&#8221; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; quality=&#8221;high&#8221; style=&#8221;position: absolute; top: 0px; left: 0px; height: 100px; width: 100px;&#8221; src=&#8221;im/sound.swf&#8221;/&gt;</font></strong></p>
<p>Gmail saves each sections- labels,  inbox, mails etc in array with a unique id. This unique id is for checking the updations on the fly using ajax.</p>
<p>For example : <font color="#0000ff">http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;view=tl&amp;start=50&amp;num=70&amp;auto=1&amp;ari=120&amp;rt=j&amp;search=inbox</font></p>
<p>The above url pics all the data as javascript array format. Check this link after logging in gmail. You can see your labels, your from email accounts, your settings,<br />
your last arrived 70 emails subject and from etc information in javascript array format.</p>
<p>This is the url which is to be called when you click older and newer mail (pagination below)</p>
<p>Gmail always call this url : <font color="#0000ff">http://mail.google.com/mail/channel/bind?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=93079&amp;SID=584B451AB93DBDC&amp;RID=16351&amp;zx=lniy7w-6psisw&amp;t=1</font></p>
<p>(leave the parameters value) for checking updatations. This is gmails rpc checking for new updations .</p>
<p>If there is any updation new rpc with post method automatically called to get new data. The calling url is same , the one above<br />
<font color="#0000ff"> http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;view=tl&amp;start=0&amp;num=70&amp;auto=1&amp;ari=120&amp;rt=j&amp;search=inbox</font></p>
<p>It results new data as javascript array format. The rest of the arrangements are handled by the script from client side.</p>
<p>Whenever you open a mail from inbox, the browser send another request for loading the sponsered links (advtisement) though this rpc<br />
<font color="#0000ff"> http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;view=ad&amp;th=118e57dc03d67f16&amp;search=inbox</font></p>
<p>The <strong>CANVAS_IFRAME</strong> is the main iframe contains all the layout of gmail</p>
<p>It contains the left side chat, main inbox or mails right side ads, and all the controls</p>
<p>The left side chat is created using table.</p>
<p>JS_IFRAME contains all the javascripts files for gmail full implementation. There are around <strong>89</strong> js files.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/chat.jpg" alt="Chat" /></p>
<p>When you chat with somebody, the url calling is : <font color="#0000ff">http://mail.google.com/mail/channel/bind?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=891&amp;SID=7D4E9A779225DC1&amp;RID=50595&amp;zx=hrsqkf-nwummu&amp;t=1</font></p>
<p>as POST method with parameters:<br />
<strong><font color="#808080"> req2_text    &lt;your chat&gt;<br />
req2_to    &lt;sender&#8217;s email address&gt;<br />
req0_type    cf<br />
req1_cmd    a<br />
req0_focused    1</font></strong></p>
<p>Now,</p>
<p><font color="#0000ff">http://mail.google.com/mail/channel/bind?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=531&amp;RID=rpc&amp;SID=48DD6BA8E1D3A326&amp;CI=1&amp;AID=176&amp;TYPE=xmlhttp&amp;zx=m0iiwn-ok5jqr&amp;t=1</font></p>
<p>the above url return the chat friends and theire status messages</p>
<p>==========================================================</p>
<p>Same url is using for getting the chat messages.</p>
<p>For example when kenney.jacob@gmail chat with me , the message comes as an array like this:</p>
<p>[184,["m","kenney.jacob@gmail.com","730DFDF6F013F640_161","active","hi da","hi da",1206444193169,</p>
<p>,,0,0,0,0,[]</p>
<p>,&#8221;square&#8221;]</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/foster-says.jpg" alt="Foster says" /></p>
<p>Here active implies the chat is active or not (the window with orange color) and with a chat alert if the window is not active.</p>
<p><font color="#0000ff">http://mail.google.com/mail/channel/test?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=24343&amp;MODE=init&amp;zx=1vyx51-ze670&amp;t=1</font></p>
<p>The above url checks whether the chat is enable or not. which returns an array:<br />
<strong> ["b","chatenabled"]</strong></p>
<p>Gmails file uploading is another interesting thing. I already posted ajax file uploading :  <a href="http://www.sajithmr.com/upload-files-like-gmail/" title="Upload Files Like Gmail" target="_blank">http://www.sajithmr.com/upload-files-like-gmail/</a></p>
<p>I will post more about gmail architecture soon .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/gmail-architecture/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
	
		<series:name><![CDATA[Gmail Architecture]]></series:name>
	</item>
		<item>
		<title>Mozilla Plugin for Gmail</title>
		<link>http://www.sajithmr.me/mozilla-plugin-for-gmail</link>
		<comments>http://www.sajithmr.me/mozilla-plugin-for-gmail#comments</comments>
		<pubDate>Fri, 14 Mar 2008 17:15:31 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[better gmail]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/mozilla-plugin-for-gmail/</guid>
		<description><![CDATA[I personally like gmail than any other webmail service in this world. I was a regular yahoo mail user two years before, and i used yahoo messenger also. I am not blaming yahoo mail service, i don&#8217;t know the reason for this switching exactly, but i like gmail. Might be because of its simple chat, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/gmail-logo.jpg" alt="Gmail logo" style="margin: 20px; float: left" /></p>
<p><strong><font size="8">I</font></strong> personally like gmail than any other webmail service in this world. I was a regular yahoo mail user  two years before, and i used yahoo messenger also. I am not blaming yahoo mail service, i don&#8217;t  know the reason for this switching exactly, but i like gmail. Might be because of its simple chat, simple Ajax implementation, very simple look, etc . But the thing i want to disclose is not a mere comparison of gmail and yahoo, that is not my concern here.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/firefox-logo.png" alt="Firefox logo" style="margin: 20px; float: right" height="207" width="209" /></p>
<p>Some additional features i expected while using gmail are <span style="font-weight: bold">HTML signature</span>, customizing the view,  labellings,  theme ,  removal of ads ,  i am not revealing the climax of the  movie here <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   but i got a mozilla plugin which does all the lagging features of gmail what i expected, and its name is  Better Gmail  (They could have put better name) .</p>
<p>You can download that plugin from here :<a href="https://addons.mozilla.org/en-US/firefox/addon/4866" title="Better Gmail" target="_blank"> Better Gmail </a></p>
<p>Screen shot:<br />
<img src="http://www.sajithmr.com/wp-content/uploads/2008/03/better-gmail.JPG" alt="Better Gmail Screen Shot" style="margin: 20px; float: right" /></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/4866" title="Download Mozilla Plugin" target="_blank">Download the plugin</a> and install and refresh gmail page after making any changes in the option. Put a better html signature with images , links etc like yahoo, customize your gmail as you wish.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/20070417-gmail-logo.jpg" alt="Google Mail Logo" height="220" width="302" /></p>
<p>(Tips: For 100% working of this plugin, you need to switch into older gmail version)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/mozilla-plugin-for-gmail/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

