I need help to solve IMAP IDLE problem from gmail

vip11

New Email
Sorry for my bad enlish first.
Our programmer making IMAP IDLE program to send mail automatically to other e-mail but it keep connetion timming out so it made delay sending everyday.
He also doesn't know why it keep happening.
we think this is g-mail problem with imap fail reconnect.
This error is "about: socket error: EOF".
should i use another e-mail service to use this program?

here are errors what i want to show you.
I really wnat to fix it and hope to get any anwer to solve this problem.
thanks.


2015-03-11 18:55:04,101 - Mailbot - ERROR - imap fail reconnect
Traceback (most recent call last):
File "/root/src/mailbot.py", line 89, in poll
text,res=self.imap.idle_done()
File "/usr/local/lib/python2.7/dist-packages/imapclient/imapclient.py", line 504, in idle_done
return self._consume_until_tagged_response(self._idle_tag, 'IDLE')
File "/usr/local/lib/python2.7/dist-packages/imapclient/imapclient.py", line 932, in _consume_until_tagged_response
line = self._imap._get_response()
File "/usr/lib/python2.7/imaplib.py", line 916, in _get_response
resp = self._get_line()
File "/usr/lib/python2.7/imaplib.py", line 1011, in _get_line
raise self.abort('socket error: EOF')
abort: socket error: EOF




===============




2015-03-11 18:58:15,560 - Mailbot - ERROR - imap fail reconnect
Traceback (most recent call last):
File "/root/src/mailbot.py", line 89, in poll
text,res=self.imap.idle_done()
File "/usr/local/lib/python2.7/dist-packages/imapclient/imapclient.py", line 504, in idle_done
return self._consume_until_tagged_response(self._idle_tag, 'IDLE')
File "/usr/local/lib/python2.7/dist-packages/imapclient/imapclient.py", line 932, in _consume_until_tagged_response
line = self._imap._get_response()
File "/usr/lib/python2.7/imaplib.py", line 916, in _get_response
resp = self._get_line()
File "/usr/lib/python2.7/imaplib.py", line 1011, in _get_line
raise self.abort('socket error: EOF')
abort: socket error: EOF

=====
00:00:23,825 - Mailbot - ERROR - tiwek@gmail.com imap fail reconnect
Traceback (most recent call last):
File "/root/src/mailbot.py", line 89, in poll
text,res=self.imap.idle_done()
File "/usr/local/lib/python2.7/dist-packages/imapclient/imapclient.py", line 504, in idle_done
return self._consume_until_tagged_response(self._idle_tag, 'IDLE')
File "/usr/local/lib/python2.7/dist-packages/imapclient/imapclient.py", line 932, in _consume_until_tagged_response
line = self._imap._get_response()
File "/usr/lib/python2.7/imaplib.py", line 916, in _get_response
resp = self._get_line()
File "/usr/lib/python2.7/imaplib.py", line 1011, in _get_line
raise self.abort('socket error: EOF')
abort: socket error: EOF
 

rfs9999

IMAP Tools
Is it timing out after 30 minutes or more of inactivity? IMAP servers typically will disconnect a session that has been inactive for that length of time. Or is the problem that you can't re-connect following a timeout?
 

rfs9999

IMAP Tools
Following up on my previous comment...

In my own experience with Gmail and IMAP IDLE I have not found that Gmail times out an idling connection after 30 minutes. As a test I started an idling connection an hour ago and it is still connected.

So your problem may lie elsewhere. Could it be a network component like a firewall or some other device is timing you out? Do the timeouts happen after the same length of time each time or are they random?
 
Top