<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/libgmail/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/libgmail/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 06 Jan 2011 16:27:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libgmail/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Searching by Labels not working?</title><link>https://sourceforge.net/p/libgmail/bugs/69/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have been running an script to process new Mails marked with a certain Label.&lt;/p&gt;
&lt;p&gt;since almost 2 months, It has stopped working.&lt;/p&gt;
&lt;p&gt;Traceback states that issue is regarding getMessageByLabel method:&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt;
File "GmailDown-v5.py", line 35, in &amp;lt;module&amp;gt;&lt;br /&gt;
result = ga.getMessagesByLabel('Mail_new', True)&lt;br /&gt;
File "c:\python26\lib\site-packages\libgmail.py", line 538, in getMessagesByLabel&lt;br /&gt;
cat=label, allPages = allPages)&lt;br /&gt;
File "c:\python26\lib\site-packages\libgmail.py", line 456, in _parseThreadSearch&lt;br /&gt;
items = self._parseSearchResult(searchType, start, **kwargs)&lt;br /&gt;
File "c:\python26\lib\site-packages\libgmail.py", line 441, in _parseSearchResult&lt;br /&gt;
return self._parsePage(_buildURL(**params))&lt;br /&gt;
File "c:\python26\lib\site-packages\libgmail.py", line 414, in _parsePage&lt;br /&gt;
items = _parsePage(self._retrievePage(urlOrRequest))&lt;br /&gt;
File "c:\python26\lib\site-packages\libgmail.py", line 99, in _parsePage&lt;br /&gt;
raise GmailError, 'Failed to parse data returned from gmail.'&lt;br /&gt;
libgmail.GmailError: Failed to parse data returned from gmail.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 06 Jan 2011 16:27:53 -0000</pubDate><guid>https://sourceforge.net3e6be0e6b625c68e76de4d477ed1ae41d0af8900</guid></item><item><title>login failed - TypeError: expected string or buffer</title><link>https://sourceforge.net/p/libgmail/bugs/68/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to find a way to bulk-download attachments from tagged mails.  gmailfs.py wasn't working, so I tried to follow along this example:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://pramode.net/articles/lfy/fuse/5.txt"&gt;http://pramode.net/articles/lfy/fuse/5.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The result is:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; ga.login()&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;br /&gt;
File "libgmail.py", line 317, in login&lt;br /&gt;
pageData = self._retrievePage(req)&lt;br /&gt;
File "libgmail.py", line 358, in _retrievePage&lt;br /&gt;
req = ClientCookie.Request(urlOrRequest)&lt;br /&gt;
File "/usr/lib64/python2.6/site-packages/mechanize/_request.py", line 31, in __init__&lt;br /&gt;
if not _rfc3986.is_clean_uri(url):&lt;br /&gt;
File "/usr/lib64/python2.6/site-packages/mechanize/_rfc3986.py", line 62, in is_clean_uri&lt;br /&gt;
return not bool(BAD_URI_CHARS_RE.search(uri))&lt;br /&gt;
TypeError: expected string or buffer&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shawn Rutledge</dc:creator><pubDate>Sun, 02 Jan 2011 08:40:28 -0000</pubDate><guid>https://sourceforge.net10bb62560f98d1c34613a90abf3b2f4d516a72cb</guid></item><item><title>Login problems Login failed. (Wrong username/password?)</title><link>https://sourceforge.net/p/libgmail/bugs/67/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;libgmail.GmailLoginFailure: 'Login failed. (Wrong username/password?)'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 17 Dec 2009 22:42:48 -0000</pubDate><guid>https://sourceforge.net93b41a17f17490f7401714071a47f2cf0388156a</guid></item><item><title>Modifications to work with new GALX cookie</title><link>https://sourceforge.net/p/libgmail/bugs/66/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It looks like recent changes to gmail authentication added a new cookie, GALX, that breaks libgmail login.  Here's the slight modifications I made to the new login() function to deal with this change.  libgmail is now working for me again!  For ease of reference, I'll just post the new beginning of login(), from libgmail.py:&lt;br /&gt;
---&lt;br /&gt;
def login(self):&lt;br /&gt;
"""&lt;br /&gt;
"""&lt;br /&gt;
# TODO: Throw exception if we were instantiated with state?&lt;br /&gt;
if self.domain:&lt;br /&gt;
data_map = {'continue': URL_GMAIL,&lt;br /&gt;
'at'      : 'null',&lt;br /&gt;
'service' : 'mail',&lt;br /&gt;
'Email': self.name,&lt;br /&gt;
'Passwd': self._pw,&lt;br /&gt;
}&lt;br /&gt;
else:&lt;br /&gt;
data_map = {'continue': URL_GMAIL,&lt;br /&gt;
'Email': self.name,&lt;br /&gt;
'Passwd': self._pw,&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;data = urllib.urlencode(data_map)&lt;br /&gt;
headers = {'Host': 'www.google.com',&lt;br /&gt;
'User-Agent': 'Mozilla/5.0 (Compatible; libgmail-python)'}&lt;/p&gt;
&lt;p&gt;req = ClientCookie.Request(URL_LOGIN, data=data, headers=headers)&lt;br /&gt;
pageData = self._retrievePage(req)&lt;/p&gt;
&lt;p&gt;# We need to re-fetch the page with the proper GALX value.&lt;br /&gt;
data_map['GALX'] = self.getCookie('GALX')&lt;br /&gt;
data = urllib.urlencode(data_map)&lt;br /&gt;
req = ClientCookie.Request(URL_LOGIN, data=data, headers=headers)&lt;br /&gt;
pageData = self._retrievePage(req)&lt;br /&gt;
---&lt;/p&gt;
&lt;p&gt;Everything past this point is the same.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 01 Oct 2009 07:56:43 -0000</pubDate><guid>https://sourceforge.netad9ce96152ca2c46c7f289b018b99418764a7cc9</guid></item><item><title>Interface to Gmail is completely broken</title><link>https://sourceforge.net/p/libgmail/bugs/65/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Concerning "python-libgmail: Interface to Gmail is completely broken"&lt;br /&gt;
&lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539927"&gt;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539927&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In case the GMail support is ever revitalized,  Marco Esquandolas &amp;lt;thirsty.quant@gmail.com&amp;gt; sent following message where he has studied the issue. Perhaps this can help the libgmail development.&lt;/p&gt;
&lt;p&gt;- - -&lt;/p&gt;
&lt;p&gt;...I came across the same problem with libgmail and the easiest&lt;br /&gt;
work around is as follows.&lt;/p&gt;
&lt;p&gt;1) Log into the gmail account&lt;br /&gt;
2) Redirect browser to: &lt;a href="https://mail.google.com/mail/?ui=1&amp;amp;&amp;amp;chtml=LoginDoneHtml"&gt;https://mail.google.com/mail/?ui=1&amp;amp;&amp;amp;chtml=LoginDoneHtml&lt;/a&gt;&lt;br /&gt;
3) Take a second look at the URL now, does it change from ui=1 to&lt;br /&gt;
ui=2?!?&lt;br /&gt;
4) If so, we've found the problem.  You must manually click, "Older&lt;br /&gt;
Version" in the upper right hand corner once.  Take note the URL&lt;br /&gt;
changes to ui=1&amp;amp;ov=1 (ui v. 1 and override?!?)&lt;br /&gt;
5) Now click "Newer Version" again&lt;br /&gt;
6) To verify that this worked, paste the link in again:&lt;br /&gt;
&lt;a href="https://mail.google.com/mail/?ui=1&amp;amp;&amp;amp;chtml=LoginDoneHtml"&gt;https://mail.google.com/mail/?ui=1&amp;amp;&amp;amp;chtml=LoginDoneHtml&lt;/a&gt;&lt;br /&gt;
7) This time, you'll wind up on /mail/?ui=1&lt;/p&gt;
&lt;p&gt;and the /mail/?ui=1 is required by libgmail to function...obviously,&lt;br /&gt;
it would be nice to correct this to work with the ui=2 version, in&lt;br /&gt;
case the older version is ever removed.  At a quick inspection, I&lt;br /&gt;
believe it is the GMAIL_AT (action token) that is not loaded properly&lt;br /&gt;
in the ui=2 which results in several libgmail failures.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jari Aalto</dc:creator><pubDate>Fri, 11 Sep 2009 11:02:28 -0000</pubDate><guid>https://sourceforge.netf060db5bc395895a811ef00f29d9e6978a4b9629</guid></item><item><title>How to get unread message in thread</title><link>https://sourceforge.net/p/libgmail/bugs/64/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How to get only unread messages from one thread?&lt;br /&gt;
Because by using getMessagesByQuery("label:abc is:unread"), it will give the unread threads but not the unread message in thread.&lt;/p&gt;
&lt;p&gt;e.g. In gmail, if one mail is having more than one replies and some of them are already read. Now I want to get only remaining unread ones.&lt;br /&gt;
How do I get those?&lt;/p&gt;
&lt;p&gt;Please reply as soon as possible.&lt;/p&gt;
&lt;p&gt;-Piyusha&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Piyusha Ekhe</dc:creator><pubDate>Mon, 20 Jul 2009 12:01:24 -0000</pubDate><guid>https://sourceforge.net48c3d148549e5a1d391a95f13cd308866d5dd535</guid></item><item><title>libgmail sendmessage throw exception</title><link>https://sourceforge.net/p/libgmail/bugs/63/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;run the sendmessage.py comes with libgmail-docs_0.3, it says:&lt;br /&gt;
Please wait, logging in...&lt;br /&gt;
Log in successful.&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt;
File "/home/bzou/tmp/sendmsg.py", line 57, in &amp;lt;module&amp;gt;&lt;br /&gt;
if ga.sendMessage(gmsg):&lt;br /&gt;
File "/home/bzou/tmp/libgmail.py", line 617, in sendMessage&lt;br /&gt;
raise GmailSendError, resultInfo[SM_MSG]&lt;br /&gt;
libgmail.GmailSendError: Please try again.&lt;/p&gt;
&lt;p&gt;Does anybody else encounter this?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 16 Jun 2009 14:24:47 -0000</pubDate><guid>https://sourceforge.netce765a4bef69cf8cd43574f7d574ce8944f7eceb</guid></item><item><title>libgmail's marks utf-8 strings as Unicode</title><link>https://sourceforge.net/p/libgmail/bugs/62/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi :)&lt;/p&gt;
&lt;p&gt;libgmail's (even latest CVS) function "_parsePage" is marking ALL strings coming from GMail as Unicode by prepending an "u" to the string, and it does it even for strings that are encoded in UTF-8.&lt;/p&gt;
&lt;p&gt;For example, my name ("Raúl") comes from GMail as "Ra\xc3\xba\l", that is, encoded in UTF-8. This becomes u'Ra\xc3\xbal' in "_parsePage()", which means that it has been converted to u'RaÃºl'.&lt;/p&gt;
&lt;p&gt;Later, libgmail does things like "whatever.decode('utf-8')", but that "whatever" is encoded like the u'RaÃºl' above, so the "decode()" call will generate an UnicodeDecodeError exception.&lt;/p&gt;
&lt;p&gt;I don't know if GMail *always* returns its strings as UTF-8, so maybe the only fix is to get the encoding from the HTML headers sent by GMail :?&lt;/p&gt;
&lt;p&gt;Raúl&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 11 Jun 2009 09:16:10 -0000</pubDate><guid>https://sourceforge.net8b32d8b41b60ea532ce546fe5eb5e1c7325ee9cd</guid></item><item><title>Login broken for Apps For Your Domain</title><link>https://sourceforge.net/p/libgmail/bugs/61/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When I try to login to my Google Apps For Your Domain account, the login function completes successfully, but no other function works properly.  By digging around in the requests/responses from the server, it appears that the login may not actually be successful, since every other function gets a javascript response which tries to redirect you to the login screen.&lt;/p&gt;
&lt;p&gt;Perhaps it's just missing the cookie?&lt;/p&gt;
&lt;p&gt;When I try the code with my regular gmail account, it works just fine.  This occurs in the latest CVS as well as the released version.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Dwyer</dc:creator><pubDate>Thu, 14 May 2009 13:35:40 -0000</pubDate><guid>https://sourceforge.netcdbf2f5dfbffe1ca2a19dafd926ebde702b5411a</guid></item><item><title>infinite timeout on proxy connection</title><link>https://sourceforge.net/p/libgmail/bugs/60/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;libgmail is working very well for me, but I am unable to set a timeout for connections, particularly when working with a proxy.  If the proxy connection just hangs, there will be no error raised or anything, it'll just try to login forever.  I have tried socket.setdefaulttimeout(5)  in a bunch of places but am still unable to set the timeout.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;I am using python 2.4.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.  Thank you.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bleh</dc:creator><pubDate>Wed, 15 Apr 2009 07:55:41 -0000</pubDate><guid>https://sourceforge.net3d3010dbf0b4d81cb9eb990d6052638ba43282f8</guid></item></channel></rss>