<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for Gmail</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Fri, 05 Sep 2008 01:01:13 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Search your Gmail account for any string</title>
	<link>http://www.bytemycode.com/snippets/snippet/451/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/451/comments/</comments>
	<pubDate>Tue, 10 Oct 2006 12:39:40 +0000</pubDate>
	<dc:creator>robert</dc:creator>
	<category>blurb, Email, Gmail, message, regex</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/451/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Oct. 10th, 2006  12:39 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/451/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/robert/" title="Beginner">robert</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/blurb">blurb</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Gmail">Gmail</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/message">message</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/regex">regex</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/451/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 4
			<p>This perl subroutine uses the CPAN module Mail::Webmail::Gmail to iterate through a Gmail account searching for a particular string. If a match is found, the sender's name along with his/her email address, the subject, and the "blurb" is printed to standard out. Also, all messages found will be archived automatically within Gmail to clear the message from the inbox folder. The subroutine returns the number of messages found back to the calling environment.<br /><br />Sample invocation: check_email(username, password);<br /><br />By default, the subroutine will use encryption to connect to Gmail however, by setting encrypt_session to '0' will disable encryption.</p>
		]]>
	</description>
</item>
	</channel>
</rss>