|
From: Stas Z <sta...@gm...> - 2005-09-11 14:31:22
|
I also CC'ed this to the gmailagent* mailinglist as we still don't have a libgmail mailinglist. (don't ask) So anyone who wants to follow what we, Waseem and I, are up to can check/subscribe to that list. * GmailAgent is a project of us that acts as a libgmail frontend.=20 On 9/10/05, Stas Z <sta...@gm...> wrote: >=20 > ---------- Forwarded message ---------- > From: Sebastien Delafond <sde...@gm...> > Date: Sep 10, 2005 9:49 PM > Subject: [sem...@ya...: Bug#327433: gmailfs: Not work...] > To: sta...@gm... >=20 >=20 > The guy reporting this bug is not using libgmail 0.1, but I have the > same problem today with 0.1: is gmail trying to disable logins via > libgmail ? :\ Can you reproduce this bug ? >=20 >=20 > ~/work/debian/python-libgmail/libgmail-0.1.0 # python libgmail.py > Gmail account name: befour > Password: >=20 > Please wait, logging in... >=20 > Login failed. (Login failed. (Wrong username/password?)) (Warning, devel talk :-) After some initial checking it seems that the "GV" cookie can't be found. (see line 293). The problem is, I think, that Gmail changed the javascript inside the=20 URL_GMAIL page. The regexp that is used to get the page which provides the cookie isn't=20 found and so it raises a exception when trying to parse 'None'. The problem is *not* the username/passwrd. BTW, when we fix this we should consider a more abstract way of parsing these pages. Now every time Gmail changes something in the javascript libgmail fails. We need javascript Python bindings :-) Stas --=20 For to be free is not merely to cast off one's chains, but to live in a way that respects and enhances the freedom of others. -Nelson Mandela |
|
From: Waseem S. D. <wd...@MI...> - 2005-09-12 03:57:22
|
On Sun, 2005-09-11 at 16:31 +0200, Stas Z wrote: > After some initial checking it seems that the "GV" cookie can't be found. > (see line 293). > The problem is, I think, that Gmail changed the javascript inside the > URL_GMAIL page. > The regexp that is used to get the page which provides the cookie isn't > found and so it raises a exception when trying to parse 'None'. > The problem is *not* the username/passwrd. I agree. Someone has submitted a very basic fix on sourceforge's bugtracker, which I will apply tomorrow afternoon. Then, I'll try to restore functionality on some of the other stuff. > BTW, when we fix this we should consider a more abstract way of > parsing these pages. Now every time Gmail changes something in > the javascript libgmail fails. > > We need javascript Python bindings :-) I'll let you implement that part ;-) - W |
|
From: Stas Z <sta...@gm...> - 2005-09-12 12:40:18
|
On 9/12/05, Waseem S. Daher <wd...@mi...> wrote: > I agree. Someone has submitted a very basic fix on sourceforge's > bugtracker, which I will apply tomorrow afternoon. Then, I'll try to > restore functionality on some of the other stuff. Great. =20 > > BTW, when we fix this we should consider a more abstract way of > > parsing these pages. Now every time Gmail changes something in > > the javascript libgmail fails. > > > > We need javascript Python bindings :-) > I'll let you implement that part ;-) I was afraid you would say that :-/ I'm a clueless newbie when it comes to javascript. However I'll start googling for some javascript Python stuff perhaps there's already some solution.=20 Stas --=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: Waseem S. D. <wd...@MI...> - 2005-09-12 13:04:46
|
On Mon, 2005-09-12 at 14:40 +0200, Stas Z wrote: > > > We need javascript Python bindings :-) > > I'll let you implement that part ;-) > I was afraid you would say that :-/ > > I'm a clueless newbie when it comes to javascript. > However I'll start googling for some javascript Python stuff perhaps > there's already > some solution. I was more being facetious than anything else -- I'm not totally convinced there's an easy way to handle these gmail changes totally agnostically. I mean, I guess gmail tells us what 'objects' correspond to what variable names, in javascript, but there's nothing really to say that those variable names won't change (and if they do, we need to rewrite some code), right? I guess we could try to parse some javascript in the Python, but I guess I don't see what's to be gained from doing it. (Though it's probably that I just don't understand what's going on with what you're proposing) - Waseem |
|
From: Stas Z <sta...@gm...> - 2005-09-12 13:23:16
|
On 9/12/05, Waseem S. Daher <wd...@mi...> wrote: > On Mon, 2005-09-12 at 14:40 +0200, Stas Z wrote: > > > > We need javascript Python bindings :-) > I was more being facetious than anything else -- I'm not totally > convinced there's an easy way to handle these gmail changes totally > agnostically. I mean, I guess gmail tells us what 'objects' correspond > to what variable names, in javascript, but there's nothing really to say > that those variable names won't change (and if they do, we need to > rewrite some code), right? You right, I'm wrong. I've warned you about my knowledge of javascript :-) =20 > I guess we could try to parse some javascript in the Python, but I guess > I don't see what's to be gained from doing it. (Though it's probably > that I just don't understand what's going on with what you're proposing) My line of thinking was something like this: - Gmail changes it's pages. - libgmail is broken. - Firefox, or any other browser, is not broken. - Why? - Because firefox parses the webpages while libgmail hacks into them with regexp etc. So I was thinking about some way to "run" the javascript rather then trying= to get the information out of it. Yeah, I realize that running javascript is something only done by lunatics, it's just a thought :-) After googling for "Python parsing javascript" I think I will forget my parsing ideas. Stas =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: Waseem S. D. <wd...@MI...> - 2005-09-12 17:28:13
|
I've fixed the latest libgmail bug, with the help of a bug report by SF user "ibbumpin". The latest version is checked into CVS and is functional as far as I can tell (that is to say, the contacts test suite passes, and so does running libgmail on its own). I think it might be instructive to have a test suite that exercises more of libgmail's functionality, though. Anyway, just FYI. We should probably repackage this ASAP, huh. - W |
|
From: Stas Z <sta...@gm...> - 2005-09-12 17:43:04
|
On 9/12/05, Waseem S. Daher <wd...@mi...> wrote: > I've fixed the latest libgmail bug, with the help of a bug report by SF > user "ibbumpin". Your the man Waseem :-) And the other helpful users of course. This is a fine example how well FOSS works. =20 > The latest version is checked into CVS and is functional as far as I can > tell (that is to say, the contacts test suite passes, and so does > running libgmail on its own). I think it might be instructive to have a > test suite that exercises more of libgmail's functionality, though. I also tested it and everything works. > Anyway, just FYI. >=20 > We should probably repackage this ASAP, huh. If you put it on SF, I suggest version 0.1.1, then I will announce it of freshmeat and I'll also contact the gmailfs author. Stas=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. |