Hi, * Kyle Wheeler wrote:
I found a situation where mutt can sometimes forget about its connections: when using smtp to send email. Apparently during transmission, mutt forgets about $imap_timeout (or any of the other ones). Thus, if my IMAP server disconnects people who are idle for 10 minutes and it takes 11 minutes to send a long email (e.g. an attachment over a slow modem), mutt will be disconnected.
How about taking the imap keepalive dance from keymap.c, turn that into a function which returns the proper value for timeout()? That function could then be called right before every progress update. Rocco