[pkg-fetchmail-maint] Bug#637478: fetchmail: 28 minute IDLE timeout should be configurable

Anders Kaseorg andersk at MIT.EDU
Thu Aug 11 22:13:15 UTC 2011


Package: fetchmail
Version: 6.3.18-2

I’m running fetchmail through a proxy server that drops any connections 
left idle for more than a little over 2 minutes.  In order to be able to 
use IMAP IDLE, I need to reduce this hardcoded timeout value in 
imap_idle():

    if (has_idle) {
        /* special timeout to terminate the IDLE and re-issue it
         * at least every 28 minutes:
         * (the server may have an inactivity timeout) */
        mytimeout = idle_timeout = 1680; /* 28 min */

It would be nice to have that as a configuration option.

In the unlikely event that this is helpful to someone else, here’s the 
i386 binary patch I’m using now (28 m = 0x690 s, 2 m = 0x78 s):
perl -0777 -pe 's/(\xc7\x05.{4})\x90\x06\x00\x00/$1\x78\x00\x00\x00/g' -i /usr/bin/fetchmail

Anders





More information about the pkg-fetchmail-maint mailing list