#58 Crashes when "reaching the limit of sending emails"

open
nobody
None
5
2008-11-18
2008-11-18
Vasilis Pappas
No

Hello,

libgmail crashes when you try to send a message using an account which has reached its limit for sending emails. Here is the stack trace of the exception :

Traceback (most recent call last):
.......
if self.ga.sendMessage(gmsg):
File "/usr/lib/python2.5/site-packages/libgmail.py", line 611, in sendMessage
resultInfo = items[D_SENDMAIL_RESULT][0]
KeyError: 'sr'

The contents of pageContent in _parsePage function are :

<html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"></head><script>D=(top.js&&top.js.init)?function(d){top.js.P(window,d)}:function(){};if(window==top){top.location="/mail/?ui\0751\46\46fs\0751";}</script><script><!--
D(["v","jfb29as9uwkl","b3acde1a5f6eff96","42","1","7sck6ul8cinq"]
);
D(["al"]);
//--></script><script>var loaded=true;D(['e',3,1227043161396]);</script>

And finally the contents of the items hash in sendMessage fucntion are:

{u'al': [[]], u'v': [[u'jfb29as9uwkl', u'b3acde1a5f6eff96', u'42', u'1', u'7sck6ul8cinq']]}

I hope this info will help you fixing the bug.
Thanks!

Discussion