nekohayo / specto

Automatically exported from code.google.com/p/specto
0 stars 0 forks source link

Gmail library can support no more than 19 new mails #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
gmail watches don't have @gmail.com automatically added like svn trunk,
please clone trunk's code :)

Original issue reported on code.google.com by nekoh...@gmail.com on 6 Jan 2008 at 1:40

GoogleCodeExporter commented 9 years ago
I also frequently experience such errors with that test watch, I think this 
issue
must be linked:

jeff@khloe:~/trunks/specto-woutc$ ./launch.sh 
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "/home/jeff/trunks/specto-woutc/spectlib/plugins/watch_mail_gmail.py", line
89, in update
    Watch.timer_update(self)
  File "/home/jeff/trunks/specto-woutc/spectlib/watch.py", line 160, in timer_update
    self.watch_updated()
  File "/home/jeff/trunks/specto-woutc/spectlib/watch.py", line 153, in watch_updated
    self.specto.mark_watch_status("updated", self.id)
  File "/home/jeff/trunks/specto-woutc/spectlib/main.py", line 200, in mark_watch_status
    self.notifier.mark_watch_status(status, id)
  File "/home/jeff/trunks/specto-woutc/spectlib/notifier.py", line 255, in
mark_watch_status
    self.toggle_updated(id)
  File "/home/jeff/trunks/specto-woutc/spectlib/notifier.py", line 206, in toggle_updated
    self.wTree.get_widget("lblExtraInfo").set_label(watch.get_extra_information())
  File "/home/jeff/trunks/specto-woutc/spectlib/plugins/watch_mail_gmail.py", line
125, in get_extra_information
    author_info += "" + self.mail_info[i].split("|")[0] + ": <i>" +
self.mail_info[i].split("|")[1] + "</i>\n"
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/jeff/trunks/specto-woutc/spectlib/notifier.py", line 410, in
show_watch_info
    self.wTree.get_widget("lblExtraInfo").set_label(watch.get_extra_information())
  File "/home/jeff/trunks/specto-woutc/spectlib/plugins/watch_mail_gmail.py", line
125, in get_extra_information
    author_info += "" + self.mail_info[i].split("|")[0] + ": <i>" +
self.mail_info[i].split("|")[1] + "</i>\n"
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/jeff/trunks/specto-woutc/spectlib/notifier.py", line 182, in
refresh_all_watches
    self.specto.watch_db[id].start()
  File "/home/jeff/trunks/specto-woutc/spectlib/watch.py", line 105, in start
    self.start_update()
  File "/home/jeff/trunks/specto-woutc/spectlib/watch.py", line 143, in start_update
    time.sleep(0.05)

Original comment by nekoh...@gmail.com on 6 Jan 2008 at 1:45

GoogleCodeExporter commented 9 years ago
are you sure about this?
it works fine for me....

Original comment by woutclym...@gmail.com on 6 Jan 2008 at 11:24

GoogleCodeExporter commented 9 years ago
I tried to fix this problem and i came across something strange...
If you have more than 19 unread mails, the information from mail 20,21,...will 
not be
available.
We need this information to check if an email is new or just unread.

I tried the same with the windows version of "Gmail notifier" and it also 
crashes
(doesn't show any message) if i have more than 19 unread mails.

Maybe we need to find an other library or find an other way to have a unique
identifier for gmail mails.

Original comment by woutclym...@gmail.com on 11 Feb 2008 at 1:16

GoogleCodeExporter commented 9 years ago

Original comment by woutclym...@gmail.com on 6 Jun 2008 at 9:58

GoogleCodeExporter commented 9 years ago
Fixed in rev 76 (dirty hack :p )

Original comment by woutclym...@gmail.com on 6 Jun 2008 at 11:23

GoogleCodeExporter commented 9 years ago
just add some comment in the code to document the fact that it's a hack around 
the
gmail limitation of metadata retrieval (does not affect message count), then 
this can
be marked Verified :) it does not crash on my side anymore.

Original comment by nekoh...@gmail.com on 7 Jun 2008 at 8:52

GoogleCodeExporter commented 9 years ago
comment added in rev 78

Original comment by woutclym...@gmail.com on 7 Jun 2008 at 10:34