<?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: Mail::Webmail::Gmail</title>
	<atom:link href="http://code.mincus.com/2/mail-webmail-gmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.mincus.com/2/mail-webmail-gmail/</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 13:46:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: mohclips</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-4965</link>
		<dc:creator>mohclips</dc:creator>
		<pubDate>Sat, 09 Dec 2006 23:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-4965</guid>
		<description>Example Script (after much more code reading):

This script prints the individual messages in a thread/conversation:

my $threads = $gmail-&gt;get_messages( label =&gt; &#039;perl-test-label&#039; );
foreach ( @{ $threads } ) {
	my $thread = $gmail-&gt;get_indv_email( msg =&gt; $_ );
	foreach $messageid ( sort keys %{$thread}) {
		my $body = $gmail-&gt;get_mime_email( id =&gt; $messageid , label =&gt; &#039;perl-test-label&#039; );
		print $body;
	};
};

The key to this is the function get_mime_email - though this basically is the same as the gmail function &#039;Show original message&#039;

I hope this helps people.

Best Regards.</description>
		<content:encoded><![CDATA[<p>Example Script (after much more code reading):</p>
<p>This script prints the individual messages in a thread/conversation:</p>
<p>my $threads = $gmail-&gt;get_messages( label =&gt; &#8216;perl-test-label&#8217; );<br />
foreach ( @{ $threads } ) {<br />
	my $thread = $gmail-&gt;get_indv_email( msg =&gt; $_ );<br />
	foreach $messageid ( sort keys %{$thread}) {<br />
		my $body = $gmail-&gt;get_mime_email( id =&gt; $messageid , label =&gt; &#8216;perl-test-label&#8217; );<br />
		print $body;<br />
	};<br />
};</p>
<p>The key to this is the function get_mime_email &#8211; though this basically is the same as the gmail function &#8216;Show original message&#8217;</p>
<p>I hope this helps people.</p>
<p>Best Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-1698</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 10 Sep 2006 15:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-1698</guid>
		<description>How do I retrieve ALL the messages in a conversation?  It seems the examples only return the last message in a thread/conversation.  Is there a way to return all individual emails?

Otherwise, it&#039;s a very nice implementation.  Thanks!</description>
		<content:encoded><![CDATA[<p>How do I retrieve ALL the messages in a conversation?  It seems the examples only return the last message in a thread/conversation.  Is there a way to return all individual emails?</p>
<p>Otherwise, it&#8217;s a very nice implementation.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishu</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-505</link>
		<dc:creator>Vishu</dc:creator>
		<pubDate>Sun, 26 Mar 2006 08:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-505</guid>
		<description>Thanks!

This is one of the most useful modules ever. It really helped me a lot!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>This is one of the most useful modules ever. It really helped me a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-187</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 04 Oct 2005 07:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-187</guid>
		<description>hi, Julien,

Another question, I am using this model to delete those thousands  trash mail. After delete about 60 trash emails, it seems gmail has blocked my account and the perl code does not work on the trash mail, althoug the print information shows it is still working. but the amount of trash email stopped decrease. and after I runned the perl script sereval time, gmail show this message,

 Our system indicates unusual usage of your account. In order to protect Gmail users from potentially harmful use of Gmail, this account has been disabled for up to 24 hours.

Any comments?

thanks.</description>
		<content:encoded><![CDATA[<p>hi, Julien,</p>
<p>Another question, I am using this model to delete those thousands  trash mail. After delete about 60 trash emails, it seems gmail has blocked my account and the perl code does not work on the trash mail, althoug the print information shows it is still working. but the amount of trash email stopped decrease. and after I runned the perl script sereval time, gmail show this message,</p>
<p> Our system indicates unusual usage of your account. In order to protect Gmail users from potentially harmful use of Gmail, this account has been disabled for up to 24 hours.</p>
<p>Any comments?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mudit</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-157</link>
		<dc:creator>Mudit</dc:creator>
		<pubDate>Tue, 13 Sep 2005 14:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-157</guid>
		<description>Nevermind .. false alarm ..
its working now !!!!

[I had written a request_hack function in UserAgent which has your modifications, but I forgot to call it when I copied your Gmail.pm file and overwrote my changes].

Thanks !!

Mudit</description>
		<content:encoded><![CDATA[<p>Nevermind .. false alarm ..<br />
its working now !!!!</p>
<p>[I had written a request_hack function in UserAgent which has your modifications, but I forgot to call it when I copied your Gmail.pm file and overwrote my changes].</p>
<p>Thanks !!</p>
<p>Mudit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mudit</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-156</link>
		<dc:creator>Mudit</dc:creator>
		<pubDate>Tue, 13 Sep 2005 14:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-156</guid>
		<description>Hi Julien,

I did modify the UserAgent.pm and also using Julien&#039;s Gmail.pm. Still I&#039;, not able to login.

I ran the perl -d and found out that its failing at 

110:                    if ( $res-&gt;content() =~ // ) {
  DB 
Mail::Webmail::Gmail::login(/usr/lib/perl5/site_perl/5.6.0/Mail/Webmail/Gmail.pm:126):
126:                        $self-&gt;{_error} = 1;

Thanks
Mudit</description>
		<content:encoded><![CDATA[<p>Hi Julien,</p>
<p>I did modify the UserAgent.pm and also using Julien&#8217;s Gmail.pm. Still I&#8217;, not able to login.</p>
<p>I ran the perl -d and found out that its failing at </p>
<p>110:                    if ( $res-&gt;content() =~ // ) {<br />
  DB<br />
Mail::Webmail::Gmail::login(/usr/lib/perl5/site_perl/5.6.0/Mail/Webmail/Gmail.pm:126):<br />
126:                        $self-&gt;{_error} = 1;</p>
<p>Thanks<br />
Mudit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thanh</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-155</link>
		<dc:creator>Thanh</dc:creator>
		<pubDate>Tue, 13 Sep 2005 08:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-155</guid>
		<description>Hi Julien,

many thanks for the answer -- it works now. 

Thanh</description>
		<content:encoded><![CDATA[<p>Hi Julien,</p>
<p>many thanks for the answer &#8212; it works now. </p>
<p>Thanh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-153</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Mon, 12 Sep 2005 19:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-153</guid>
		<description>Hi

I made another comment about the other things I did, but it is still awaiting moderation. I think it was too long... Anyway, I posted the Gmail.pm I use here :

http://www.greyhats.org/files/Gmail.pm

Moreover, the only change I made in UserAgent.pm (from LWP) is replacing, in the request sub, the line 
	$referral-&gt;remove_header(&#039;Host&#039;), &#039;Cookie&#039;);
by
	$referral-&gt;remove_header(&#039;Host&#039;); #, &#039;Cookie&#039;);

Warning : This is dirty hack, very dirty hack...

Julien</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I made another comment about the other things I did, but it is still awaiting moderation. I think it was too long&#8230; Anyway, I posted the Gmail.pm I use here :</p>
<p><a href="http://www.greyhats.org/files/Gmail.pm" rel="nofollow">http://www.greyhats.org/files/Gmail.pm</a></p>
<p>Moreover, the only change I made in UserAgent.pm (from LWP) is replacing, in the request sub, the line<br />
	$referral-&gt;remove_header(&#8216;Host&#8217;), &#8216;Cookie&#8217;);<br />
by<br />
	$referral-&gt;remove_header(&#8216;Host&#8217;); #, &#8216;Cookie&#8217;);</p>
<p>Warning : This is dirty hack, very dirty hack&#8230;</p>
<p>Julien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thanh</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-152</link>
		<dc:creator>Thanh</dc:creator>
		<pubDate>Mon, 12 Sep 2005 12:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-152</guid>
		<description>Hi Julien,

I also use Mail::Webmail::Gmail to send mail and it stopped working a few days ago. I have no idea how to fix it, as I am nor a web neither a perl programmer, but I would like to have a workaround if possible. Can you please send me the changes you made to UserAgent.pm to make it work? I tried to comment out the line you mentioned, but it didn&#039;t work -- probably there is more than just commenting out that line.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Julien,</p>
<p>I also use Mail::Webmail::Gmail to send mail and it stopped working a few days ago. I have no idea how to fix it, as I am nor a web neither a perl programmer, but I would like to have a workaround if possible. Can you please send me the changes you made to UserAgent.pm to make it work? I tried to comment out the line you mentioned, but it didn&#8217;t work &#8212; probably there is more than just commenting out that line.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://code.mincus.com/2/mail-webmail-gmail/comment-page-1/#comment-151</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Sun, 11 Sep 2005 09:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://code.mincus.com/?p=2#comment-151</guid>
		<description>In fact, cookie are not forwarded from the first GET http://mail.google.com/mail to the GET https://www.google.com/accounts/...

I checked in the LWP::UserAgent code, in  the request sub. In fact, that is normal, the following code comes from it :

 # These headers should never be forwarded
 $referral-&gt;remove_header(&#039;Host&#039;); &#039;Cookie&#039;);

Dont&#039; know why, as I&#039;m no HTTP header expert.

To be sure, I changed the LWP::UserAgent code (!) to make Cookie header be forwarded and ... that worked.


Any hint ?

Kind regards

Julien</description>
		<content:encoded><![CDATA[<p>In fact, cookie are not forwarded from the first GET <a href="http://mail.google.com/mail" rel="nofollow">http://mail.google.com/mail</a> to the GET <a href="https://www.google.com/accounts/.." rel="nofollow">https://www.google.com/accounts/..</a>.</p>
<p>I checked in the LWP::UserAgent code, in  the request sub. In fact, that is normal, the following code comes from it :</p>
<p> # These headers should never be forwarded<br />
 $referral-&gt;remove_header(&#8216;Host&#8217;); &#8216;Cookie&#8217;);</p>
<p>Dont&#8217; know why, as I&#8217;m no HTTP header expert.</p>
<p>To be sure, I changed the LWP::UserAgent code (!) to make Cookie header be forwarded and &#8230; that worked.</p>
<p>Any hint ?</p>
<p>Kind regards</p>
<p>Julien</p>
]]></content:encoded>
	</item>
</channel>
</rss>
