<?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/"
	>

<channel>
	<title>Ed&#039;s World &#187; gmail</title>
	<atom:link href="http://www.jellard.co.uk/tag/gmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jellard.co.uk</link>
	<description>Bringing data into real life in a meaningful way</description>
	<lastBuildDate>Fri, 14 May 2010 15:00:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Improved Google mail number of unread emails script</title>
		<link>http://www.jellard.co.uk/2010/01/improved-google-mail-number-of-unread-emails-script/</link>
		<comments>http://www.jellard.co.uk/2010/01/improved-google-mail-number-of-unread-emails-script/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:20:17 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[ambient light]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.jellard.co.uk/?p=173</guid>
		<description><![CDATA[Since writing &#8220;Get number of unread posts from google mail&#8221;, I realised that I didn&#8217;t care about a lot of emails that I get on a regular basis, things like ebuyer emails, stock-market alerts etc.  I only want to be notified when I&#8217;ve got emails from real people.
By applying a &#8220;Newsletters&#8221; label on GMail [...]]]></description>
			<content:encoded><![CDATA[<p>Since writing <a href="http://www.jellard.co.uk/2009/11/get-number-of-unread-posts-from-google-mail/">&#8220;Get number of unread posts from google mail&#8221;</a>, I realised that I didn&#8217;t care about a lot of emails that I get on a regular basis, things like ebuyer emails, stock-market alerts etc.  I only want to be notified when I&#8217;ve got emails from real people.</p>
<p>By applying a &#8220;Newsletters&#8221; label on GMail to all automated messages by filtering messages, I can now see how many unread emails I have, then subtract the number of unread newsletters I have, and flash the ambient light that number of times.</p>
<p>Grab <a href="/wp-content/uploads/getGoogleMail.sh">getGoogleMail.sh</a>, change the usernames and passwords, and change &#8220;Newsletters&#8221; to whatever your google label is.  Then use the $count variable to do whatever you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jellard.co.uk/2010/01/improved-google-mail-number-of-unread-emails-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get number of unread posts from google mail</title>
		<link>http://www.jellard.co.uk/2009/11/get-number-of-unread-posts-from-google-mail/</link>
		<comments>http://www.jellard.co.uk/2009/11/get-number-of-unread-posts-from-google-mail/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:08:40 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[ambient light]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://www.jellard.co.uk/?p=84</guid>
		<description><![CDATA[Here&#8217;s a simple bash script that gets the number of unread messages, and runs a command that does something with that.  In my case, a java program that puts a message on a MQTT topic, which indirectly flashes an ambient light.
 

#!/bin/bash
while (true)
do

rm atom
rm atom_process

wget https://gmail.google.com/gmail/feed/atom --user=XXXXX --password=XXXXX 2&#38;&#62;1  /dev/null

cat atom &#124; grep [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple bash script that gets the number of unread messages, and runs a command that does something with that.  In my case, a java program that puts a message on a MQTT topic, which indirectly flashes an ambient light.</p>
<p><code> </code></p>
<p><code></p>
<pre style="font-size: 9px">#!/bin/bash
while (true)
do

rm atom
rm atom_process

wget https://gmail.google.com/gmail/feed/atom --user=XXXXX --password=XXXXX 2&amp;&gt;1  /dev/null

cat atom | grep fullcount &gt; atom_process
count=`sed -n -e 's/.*&gt;\(.*\)&lt;.*/\1/p' atom_process`

java -jar /home/ed/rrd/MQTTRunner.jar mpc_google 3 $count
sleep 60

done</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jellard.co.uk/2009/11/get-number-of-unread-posts-from-google-mail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
