<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Playing With Python And Gmail</title>
	<atom:link href="http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/</link>
	<description>vinod&#039;s blog</description>
	<lastBuildDate>Wed, 20 Apr 2011 03:52:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: crinus</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-2538</link>
		<dc:creator>crinus</dc:creator>
		<pubDate>Fri, 11 Feb 2011 20:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-2538</guid>
		<description>You got a really great tutorial here. And also taught me Python, by the way!

It&#039;s nice doing code since I&#039;ve been an avid coder in the past days, but
nothing inspired for long time. Email fetching and perhaps visualization 
is one thing that interests me. With this tut, I got the Python basics as well. 

Thanks!</description>
		<content:encoded><![CDATA[<p>You got a really great tutorial here. And also taught me Python, by the way!</p>
<p>It&#8217;s nice doing code since I&#8217;ve been an avid coder in the past days, but<br />
nothing inspired for long time. Email fetching and perhaps visualization<br />
is one thing that interests me. With this tut, I got the Python basics as well. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esteban</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-341</link>
		<dc:creator>Esteban</dc:creator>
		<pubDate>Sat, 04 Dec 2010 09:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-341</guid>
		<description>Is there any way to download attachments? Thanks for your post</description>
		<content:encoded><![CDATA[<p>Is there any way to download attachments? Thanks for your post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohammed mansoor kpa</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-105</link>
		<dc:creator>mohammed mansoor kpa</dc:creator>
		<pubDate>Thu, 23 Sep 2010 11:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-105</guid>
		<description>its more helpful
thanks..
using ur code,only selected mails are retrieved but not other...
check that...</description>
		<content:encoded><![CDATA[<p>its more helpful<br />
thanks..<br />
using ur code,only selected mails are retrieved but not other&#8230;<br />
check that&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Playing With Python And Gmail &#8211; Part 2</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-104</link>
		<dc:creator>Playing With Python And Gmail &#8211; Part 2</dc:creator>
		<pubDate>Thu, 19 Aug 2010 09:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-104</guid>
		<description>[...] of the article series &#8216;Playing With Python And Gmail&#8217;. If you didn&#8217;t read the first part I would recomend you to read [...]</description>
		<content:encoded><![CDATA[<p>[...] of the article series &#8216;Playing With Python And Gmail&#8217;. If you didn&#8217;t read the first part I would recomend you to read [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: segfault</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-103</link>
		<dc:creator>segfault</dc:creator>
		<pubDate>Wed, 11 Aug 2010 06:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-103</guid>
		<description>Yes. the below code will get the very first mail in your gmail inbox.

from email.parser import HeaderParser

data = M.FETCH(1, &#039;(RFC822)&#039;)
header_data = data[1][0][1]
parser = HeaderParser()
msg = parser.parsestr(header_data)

print msg[&#039;From&#039;]
print msg[&#039;To&#039;]
print msg[&#039;Subject&#039;]

# get content
for part in msg.walk():
  print part.get_content_type()
  print part.get_payload()

hope this help.</description>
		<content:encoded><![CDATA[<p>Yes. the below code will get the very first mail in your gmail inbox.</p>
<p>from email.parser import HeaderParser</p>
<p>data = M.FETCH(1, &#8216;(RFC822)&#8217;)<br />
header_data = data[1][0][1]<br />
parser = HeaderParser()<br />
msg = parser.parsestr(header_data)</p>
<p>print msg['From']<br />
print msg['To']<br />
print msg['Subject']</p>
<p># get content<br />
for part in msg.walk():<br />
  print part.get_content_type()<br />
  print part.get_payload()</p>
<p>hope this help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan Perera</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-102</link>
		<dc:creator>Rohan Perera</dc:creator>
		<pubDate>Wed, 11 Aug 2010 03:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-102</guid>
		<description>Do you have a method to retrieve the following from an email message:

1) subject
2) author
3) message of the email


Thanks
Rohan</description>
		<content:encoded><![CDATA[<p>Do you have a method to retrieve the following from an email message:</p>
<p>1) subject<br />
2) author<br />
3) message of the email</p>
<p>Thanks<br />
Rohan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: segfault</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-101</link>
		<dc:creator>segfault</dc:creator>
		<pubDate>Fri, 30 Jul 2010 08:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-101</guid>
		<description>@Chris

Thanks for pointing that out.</description>
		<content:encoded><![CDATA[<p>@Chris</p>
<p>Thanks for pointing that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-100</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 29 Jul 2010 21:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-100</guid>
		<description>Great article, one code typo...

def logout(): should probably be def logout(self):</description>
		<content:encoded><![CDATA[<p>Great article, one code typo&#8230;</p>
<p>def logout(): should probably be def logout(self):</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zoobert</title>
		<link>http://segfault.in/2010/07/playing-with-python-and-gmail-part-1/#comment-99</link>
		<dc:creator>zoobert</dc:creator>
		<pubDate>Thu, 29 Jul 2010 07:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=1050#comment-99</guid>
		<description>What would be nice is how to use the gmail api to activate some of the options like forwarding.

I would like to have a cron that activate the forwarding of gmail emails to my work account that is link to my blackberry in the evening when I am commuting home.

Some examples on how to play with the API would be beneficial.</description>
		<content:encoded><![CDATA[<p>What would be nice is how to use the gmail api to activate some of the options like forwarding.</p>
<p>I would like to have a cron that activate the forwarding of gmail emails to my work account that is link to my blackberry in the evening when I am commuting home.</p>
<p>Some examples on how to play with the API would be beneficial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

