Dashboard

Sep 09 15:03 | RT @mattcutts: Out of nowhere, a 180° turnaround by Apple on public app guidelines and choosing your own dev tools: http://goo.gl/4L97
Sep 07 17:30 | All the hacks from Music Hack Day in London last weekend: http://bit.ly/auyfOD
Sep 06 00:44 | RT @bammtv: Tear it up, Brios! RT @thebandconbrio: Playing a show in San Francisco, CA at 9:30 PM today at Boom Boom Room http://artistd ...

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.