<?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>Komentarze do: Conky i poczta Gmail</title>
	<atom:link href="http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/</link>
	<description>Przydatne polecenia, sprawdzone rozwiązania. Tutaj znajdziesz porady związane z konfiguracją i użytkowaniem systemu Ubuntu Linux.</description>
	<lastBuildDate>Sat, 11 Feb 2012 09:15:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Autor: loginus</title>
		<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/#comment-5265</link>
		<dc:creator>loginus</dc:creator>
		<pubDate>Thu, 05 Jan 2012 22:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://start1g.ovh.net/~ubuntupo//?p=21#comment-5265</guid>
		<description>Mój skrypt wygląda tak:


#!/bin/bash

gmail_login=&quot;gmail_login&quot;
gmail_password=&quot;gmail_password&quot;

data=&quot;$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q --user=&quot;${gmail_login}&quot; --password=&quot;${gmail_password}&quot; -O - \
        https://mail.google.com/mail/feed/atom \
        --no-check-certificate &#124; grep &#039;fullcount&#039; \
        &#124; sed -e &#039;s/.*//;s/.*//&#039; 2&gt;/dev/null)&quot;

#if [ -z &quot;$data&quot; ]; then
#echo &quot;Connection Error !&quot;
#else
#echo &quot;GMail: $data msg(s)&quot;
#fi

if [ -z &quot;$data&quot; ]; then
        echo &quot;Connection error&quot;
else
        let result=$data;
        if [ $result = 0 ]; then
                echo &quot;No new messages.&quot;
        else
                echo &quot;$result new messages.&quot;
        fi
fi


działa również z kontami Google Apps - wtedy w miejsce loginu trzeba podać pełny mail w domenie zarejestrowanej w google apps np. janek@kowalski.pl</description>
		<content:encoded><![CDATA[<p>Mój skrypt wygląda tak:</p>
<p>#!/bin/bash</p>
<p>gmail_login="gmail_login"<br />
gmail_password="gmail_password"</p>
<p>data="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q --user="${gmail_login}" --password="${gmail_password}" -O - \<br />
        <a href="https://mail.google.com/mail/feed/atom" rel="nofollow">https://mail.google.com/mail/feed/atom</a> \<br />
        --no-check-certificate | grep 'fullcount' \<br />
        | sed -e 's/.*//;s/.*//' 2&gt;/dev/null)"</p>
<p>#if [ -z "$data" ]; then<br />
#echo "Connection Error !"<br />
#else<br />
#echo "GMail: $data msg(s)"<br />
#fi</p>
<p>if [ -z "$data" ]; then<br />
        echo "Connection error"<br />
else<br />
        let result=$data;<br />
        if [ $result = 0 ]; then<br />
                echo "No new messages."<br />
        else<br />
                echo "$result new messages."<br />
        fi<br />
fi</p>
<p>działa również z kontami Google Apps - wtedy w miejsce loginu trzeba podać pełny mail w domenie zarejestrowanej w google apps np. <a href="mailto:janek@kowalski.pl">janek@kowalski.pl</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: SABBATH</title>
		<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/#comment-3212</link>
		<dc:creator>SABBATH</dc:creator>
		<pubDate>Sun, 29 May 2011 22:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://start1g.ovh.net/~ubuntupo//?p=21#comment-3212</guid>
		<description>mam to samo blad polaczenia ???</description>
		<content:encoded><![CDATA[<p>mam to samo blad polaczenia ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: ZajOnDz</title>
		<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/#comment-2840</link>
		<dc:creator>ZajOnDz</dc:creator>
		<pubDate>Sun, 01 May 2011 11:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://start1g.ovh.net/~ubuntupo//?p=21#comment-2840</guid>
		<description>błąd połączenia... Dla czego? login i hasło na pewno wpisałem poprawne... :&#124;</description>
		<content:encoded><![CDATA[<p>błąd połączenia... Dla czego? login i hasło na pewno wpisałem poprawne... <img src='http://www.ubuntu-pomoc.org/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Hipekhop</title>
		<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/#comment-1673</link>
		<dc:creator>Hipekhop</dc:creator>
		<pubDate>Wed, 15 Sep 2010 23:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://start1g.ovh.net/~ubuntupo//?p=21#comment-1673</guid>
		<description>Może i przerost formy nad treścią, ale o wiele ładniej wygląda, a to połowa uroku conky :)</description>
		<content:encoded><![CDATA[<p>Może i przerost formy nad treścią, ale o wiele ładniej wygląda, a to połowa uroku conky <img src='http://www.ubuntu-pomoc.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: Mak</title>
		<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/#comment-1672</link>
		<dc:creator>Mak</dc:creator>
		<pubDate>Sun, 14 Feb 2010 00:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://start1g.ovh.net/~ubuntupo//?p=21#comment-1672</guid>
		<description>Szkoda, że to nie działa z kontami Google Apps.
różni się na pewno ścieżka, bo w GA jest @mail.google.com/a/TWOJA_DOMENA/feed/atom
Ale sama zmiana ścieżki nie pomaga, pokazuje błąd połączenia</description>
		<content:encoded><![CDATA[<p>Szkoda, że to nie działa z kontami Google Apps.<br />
różni się na pewno ścieżka, bo w GA jest @mail.google.com/a/TWOJA_DOMENA/feed/atom<br />
Ale sama zmiana ścieżki nie pomaga, pokazuje błąd połączenia</p>
]]></content:encoded>
	</item>
	<item>
		<title>Autor: youlleck</title>
		<link>http://www.ubuntu-pomoc.org/conky-i-poczta-gmail/#comment-1671</link>
		<dc:creator>youlleck</dc:creator>
		<pubDate>Tue, 26 Aug 2008 23:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://start1g.ovh.net/~ubuntupo//?p=21#comment-1671</guid>
		<description>if [ -z &quot;$dane&quot; ]; then
echo &quot;Błąd połączenia&quot;
else
let wynik=$dane;
if [ $wynik = 0 ]; then
echo &quot;Nie masz nowych wiadomości.&quot;
elif [ $wynik = 1 ]; then
echo &quot;Masz 1 nową wiadomość.&quot;
else
if [ $wynik -lt 5 ]; then
echo &quot;Masz $wynik nowe wiadomości.&quot;
else
echo &quot;Masz $wynik nowych wiadomości.&quot;
fi
fi
fi

to juz chyba przerost formy nad trescia ;)</description>
		<content:encoded><![CDATA[<p>if [ -z "$dane" ]; then<br />
echo "Błąd połączenia"<br />
else<br />
let wynik=$dane;<br />
if [ $wynik = 0 ]; then<br />
echo "Nie masz nowych wiadomości."<br />
elif [ $wynik = 1 ]; then<br />
echo "Masz 1 nową wiadomość."<br />
else<br />
if [ $wynik -lt 5 ]; then<br />
echo "Masz $wynik nowe wiadomości."<br />
else<br />
echo "Masz $wynik nowych wiadomości."<br />
fi<br />
fi<br />
fi</p>
<p>to juz chyba przerost formy nad trescia <img src='http://www.ubuntu-pomoc.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

