From: Stas Z <sta...@gm...> - 2005-09-20 13:27:54
|
On 9/20/05, follower <fol...@my...> wrote: >=20 >=20 >=20 > ---------- Forwarded message ---------- > From: Mike Varak <var...@gm...> > To: "fol...@my..." <fol...@my...> > Date: Mon, 19 Sep 2005 18:12:31 -0700 > Subject: libgmail problem > Hi > =20 > Am I broken or is libgmail? Using version from CVS today... I hope libgmail is and not you :-) =20 The error you reported is a known bug which seems to be related to a empty account. Can you confirm that the account your trying to access is empty, I mean it has no messages. BTW, you should use the latest release from sourceforge, it can't be guaranteed that the CVS will contain a proper working libgmail. Regards, Stas Zytkiewicz =20 > Thanks > =20 > Mike > =20 > =20 > pbx:/usr/src/libgmail# python libgmail.py > Gmail account name: varakdrive > Password: > =20 > Please wait, logging in... > Login successful. > =20 > Traceback (most recent call last): > File "libgmail.py", line 1426, in ? > quotaInfo =3D ga.getQuotaInfo() > File "libgmail.py", line 466, in getQuotaInfo > self.getMessagesByFolder(U_INBOX_SEARCH) > File "libgmail.py", line 446, in getMessagesByFolder > return self._parseThreadSearch(folderName, allPages =3D > allPages) > File "libgmail.py", line 422, in _parseThreadSearch > return GmailSearchResult(self, (searchType, kwargs), threadsInfo) > File "libgmail.py", line 1090, in __init__ > self._threads =3D [GmailThread(self, thread) for thread in > threadsInfo[0]] > File "libgmail.py", line 1178, in __init__ > self.id =3D threadsInfo[T_THREADID] # TODO: Change when canonical > updated? > TypeError: unsubscriptable object > =20 > =20 > =20 >=20 --=20 A nation that continues year after year to spend more money on military def= ense than on programs of social uplift is approaching spiritual doom. Martin Luther King, Jr. |
From: Andrew L. <one...@gm...> - 2005-09-20 13:31:38
|
"BTW, you should use the latest release from sourceforge, it can't be guaranteed that the CVS will contain a proper working libgmail." Perhaps it's time to change this: "Please note: Always download and test the CVS version of libgmail if you are having problems. The most recent packaged version no longer works correctly. The current development status means critical errors caused by changes at Gmail will be corrected as soon as possible in CVS, if the author is notified about the issue." On 9/20/05, Stas Z <sta...@gm...> wrote: > On 9/20/05, follower <fol...@my...> wrote: > > > > > > > > ---------- Forwarded message ---------- > > From: Mike Varak <var...@gm...> > > To: "fol...@my..." <fol...@my...> > > Date: Mon, 19 Sep 2005 18:12:31 -0700 > > Subject: libgmail problem > > Hi > > > > Am I broken or is libgmail? Using version from CVS today... > I hope libgmail is and not you :-) > > The error you reported is a known bug which seems to be related to > a empty account. Can you confirm that the account your trying to > access is empty, I mean it has no messages. > > BTW, you should use the latest release from sourceforge, it can't > be guaranteed that the CVS will contain a proper working libgmail. > > Regards, > Stas Zytkiewicz > > > Thanks > > > > Mike > > > > > > pbx:/usr/src/libgmail# python libgmail.py > > Gmail account name: varakdrive > > Password: > > > > Please wait, logging in... > > Login successful. > > > > Traceback (most recent call last): > > File "libgmail.py", line 1426, in ? > > quotaInfo =3D ga.getQuotaInfo() > > File "libgmail.py", line 466, in getQuotaInfo > > self.getMessagesByFolder(U_INBOX_SEARCH) > > File "libgmail.py", line 446, in getMessagesByFolder > > return self._parseThreadSearch(folderName, allPages =3D > > allPages) > > File "libgmail.py", line 422, in _parseThreadSearch > > return GmailSearchResult(self, (searchType, kwargs), threadsInfo) > > File "libgmail.py", line 1090, in __init__ > > self._threads =3D [GmailThread(self, thread) for thread in > > threadsInfo[0]] > > File "libgmail.py", line 1178, in __init__ > > self.id =3D threadsInfo[T_THREADID] # TODO: Change when canonical > > updated? > > TypeError: unsubscriptable object > > > > > > > > > > > -- > A nation that continues year after year to spend more money on military d= efense > than on programs of social uplift is approaching spiritual doom. > Martin Luther King, Jr. > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your ver= y > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gmailagent-devel mailing list > Gma...@li... > https://lists.sourceforge.net/lists/listinfo/gmailagent-devel > |
From: Stas Z <sta...@gm...> - 2005-09-24 18:34:31
|
On 9/24/05, follower <fol...@my...> wrote: > > > > ---------- Forwarded message ---------- > From: Evan Jones <ej...@uw...> > To: fol...@my... > Date: Fri, 23 Sep 2005 00:43:50 -0400 > Subject: libgmail: Tiny fix > Using the latest CVS version of libgmail, I get the following error > when I try to use gcp: > > Traceback (most recent call last): [...] > IndexError: list index out of range [..] > Hence, if you change line 623 from this: > > resultInfo =3D items[D_SENDMAIL_RESULT] > > to this: > > resultInfo =3D items[D_SENDMAIL_RESULT][0] > > it works. Hi Evan. Thank you very much for the fix, it will be in the next release of libgmail= . > I wonder if this means that a more general fix is required in > _parsePage? No, the the page parser is changed due to a very serious security bug. The result is that all the data from the parser is now in the same format. (list(s) in a list) The downside is that, as you noticed, not all the code is changed to handle the new format. Regards, Stas Zytkiewicz -- A nation that continues year after year to spend more money on military def= ense than on programs of social uplift is approaching spiritual doom. Martin Luther King, Jr. |