Dashboard

Mar 09 00:53 | Tired doesn't seem the right word at the moment. Time to grab a couple hours.
Mar 08 21:41 | 5 reasons why your company should be distributed: http://bit.ly/bxoJag Big fan of the concept (I've worked remote for 6 years)
Mar 05 16:21 | Sometimes things are out of your control, no matter how much you think or try otherwise.

idlemailcheck v0.0.2 released

December 17th 2009

I have been rather busy the last month and a half, but wanted to push out a small update to the original idlemailcheck concept script.

A lot of people have been reporting that IMAP servers which detect inactivity after 30 minutes have been disconnecting the socket. This was an oversight in my original concept script, as the RFC is quite clear that anything that uses an IDLE call should keep track of the time of the current session and disconnect/reconnect before the 30 minute mark as to not cause is with IDLE calls failing (or the script exiting).

The simple solution is to setup a timer, logout, and then reconnect every 25 or so minutes. The problem is, I have been working on a 0.1 release with a lot more features (which is not yet done), so the even quicker solution is to create an infinite loop on the main body of the script using while(1) and then letting socket timeout after 30 minutes. When that happens, the while(1) is hit, and the main body (login, open socket, et cetera) starts over.

I’ve been using this small update for testing purposes, and combined with KeepAlive set to true to deal with poor/unstable connections, the script works surprisingly well. Yipee for quick fixes!

You can grab the update on the idlemailcheck project page. Feedback (here or on the project page) is always greatly appreciated.

Reader Responses

Skip to Response Form

Comment on this Entry

About This Entry

You are reading "idlemailcheck v0.0.2 released", and entry posted on 17 December, 2009 and filed under Snarl, perl, releases.

0 responses to this entry. 0 blog reactions. Add your response or trackback from your own site.