Gmail integration

0 views
Skip to first unread message

michae...@googlemail.com

unread,
Sep 18, 2007, 4:59:44 PM9/18/07
to Gimmie Desktop Organizer
A few days ago i found gimmie.
I really really like it!

Today zerwas explained me how to get the gmail contacts into gimmie.

It would be nice if it shows me the count of unreaded mails too :)

Iam not familiar with python and object oriented programming.
I can programm a microcontroller in C an Assembler and have some
skills in PHP and JS an some knowledge about AJAX but i think thats
not enough. :)

I checked the gimmie source from the svn but don't know how to
start :)

Some helping explanations would be nice ;)

Michi

Alex Graveley

unread,
Sep 18, 2007, 7:18:36 PM9/18/07
to gim...@googlegroups.com
Welcome!

First step is to get gimmie building. Let me know if you have any
trouble. Then just start poking around to see what works and what
doesn't. Luckily, it's python, so it's easy to experiment :-)

-Alex

michae...@googlemail.com

unread,
Sep 19, 2007, 8:42:49 AM9/19/07
to Gimmie Desktop Organizer
Building works :)

The libgmail includes some demo files.
To get the number of unreaded msgs there is a method calld
getUnreadMsgCount()
I think ga is our object that is logged into gmail.

I coppied the get_contacts method in the gimmie_gmail.py

an changed it they way i think it should work :)

looks like:

def get_mails(self):
if self.logged_in == False:
self._login()

countedMails = ga.getUnreadMsgCount()

return countedMails

But i dont know where to call it to print the count before the gmail
contact list

I found :

for item in gmail_reader.get_contacts():
yield item

in the same file in line 201

so i added
yield gmail_reader.get_mails()

after that line and build everything.

When i now press the gmail button gimmie crashes.

Whats wrong? :)

On 19 Sep., 01:18, "Alex Graveley" <a...@beatniksoftware.com> wrote:
> Welcome!
>

> First step is to get gimmie building. Let me know if you have any on


> trouble. Then just start poking around to see what works

> doesn't. Luckily, it's python, so it's easy to experiment :-)
>
> -Alex
>

Seif Lotfy

unread,
Oct 13, 2007, 2:34:32 AM10/13/07
to Gimmie Desktop Organizer
type down the error ....
if you want i can help u on sunday and we can try to get that thing to
work together....
however i will only guide you ... so you can learn ...

On 19 Sep., 14:42, "michaelkr...@googlemail.com"

> > > Michi- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

Ale...@googlemail.com

unread,
Nov 2, 2007, 10:26:50 AM11/2/07
to Gimmie Desktop Organizer
Hi,

I've got the latest CVS version of libgmail, but contacts still
doesn't work. After I tipped my account infos gimmie crashs with
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_topicwin.py",
line 750, in _idle_load_items
for i in items:
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_base.py", line
249, in get_items
for i in self.get_items_uncached():
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_gmail.py", line
200, in get_items_uncached
for item in gmail_reader.get_contacts():
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_gmail.py", line
314, in get_contacts
contacts = acct.getContacts()
File "/usr/lib/python2.5/site-packages/gimmie/libgmail.py", line
797, in getContacts
addresses = myData['cl']
KeyError: 'cl'

Any idea?

Alendit

Alex Graveley

unread,
Nov 2, 2007, 1:33:35 PM11/2/07
to gim...@googlegroups.com
What version of Gimmie? SVN trunk?

You shouldn't need libgmail CVS installed at all anymore since trunk
now includes the CVS version.

-Alex

Dimitri Vorona

unread,
Nov 2, 2007, 2:28:39 PM11/2/07
to gim...@googlegroups.com
Yo, I've got trunk version. Since it didn't worked I tried svn version
of libgmail. The same error.

michae...@googlemail.com

unread,
Nov 2, 2007, 7:20:51 PM11/2/07
to Gimmie Desktop Organizer
I have the same problem

Alex Graveley

unread,
Nov 2, 2007, 7:28:36 PM11/2/07
to gim...@googlegroups.com
No idea on this one. Seems like libgmail might be broken. I know
Gmail just got a new contact editor. Maybe this is related? Anyone
want to try contacting the libgmail maintainer?

-Alex

On Nov 2, 2007 4:20 PM, michae...@googlemail.com

Dimitri Vorona

unread,
Nov 3, 2007, 5:41:47 AM11/3/07
to gim...@googlegroups.com
Hi

got another problem. When I start gimmie first time and try to login
in gmail, it asks keyring if it has the key. There a windows where I
should enter master password, but i can't, because the hole desktop
freezes. I must change to another terminal, kill gimmie_applet and
then I can use the desktop again. If a do the same thing one more time
it problem doesn't occur.

Alendit

Dimitri Vorona

unread,
Nov 3, 2007, 5:56:38 AM11/3/07
to gim...@googlegroups.com
Hi

asked xfollower (dev of libgmail), waiting for the answer.
Stange is that on a console I can't even login into my gmail account

>>> import libgmail
>>> ga = libgmail.GmailAccount("ale...@gmail.com", "iluvatar!")
>>> ga.login()
HTTP Error 302: The HTTP server returned a redirect error that would
lead to an infinite loop.
The last 30x error message was:
Moved Temporarily

Maybe this error happens because of this.

Also found this
http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=798083

Alendit

Dimitri Vorona

unread,
Nov 3, 2007, 6:14:48 AM11/3/07
to gim...@googlegroups.com
I contacted Anrei Fortuna (guy who posted the job). There the log:

[11:08:53] alendit: Hi
[11:08:59] alendit: are you the andrei fortuna, who posted a job on
fixing libgmail?
[11:09:06] alendit: if its you can you tell if its already done
[11:09:13] alendit: gimmie project (another gnome panel) is using
libgmail and now with broken libgmail this funktion doesn't work
[11:09:51] 12923517: hey man - superb news!
[11:10:08] 12923517: oh wait
[11:10:15] alendit: ^^
[11:10:36] 12923517: no, sry, didn't find a solution except use gmail
smtp server
[11:11:16] alendit: ok, thanks...if you find any plz post it somewhere
[11:11:27] 12923517: it enters a kind of infinite loop when trying to
retrieve cookies from a page
[11:11:34] 12923517: sure
[11:11:38] alendit: see ya

I hope someone can fix it or it will be difficult with gmail support.

Alendit

Ale...@googlemail.com

unread,
Nov 8, 2007, 1:58:57 PM11/8/07
to Gimmie Desktop Organizer
As was said, google changed the gmail page. But you can still access
old version with mail.google.com/?ui=1. To do so with libgmail.py just
change line 43 to look like:
GMAIL_URL_GMAIL = "https://mail.google.com/mail/?ui=1"
This solution is temporary though, I hope there will be another way
soon.

Alendit

Reply all
Reply to author
Forward
0 new messages