On 16.09.2010 04:31, Jacob Whatley wrote:
I have confirmed what appears to be a race condition with multiple IMAP connections to UW-IMAP that occurs when a user is logged in to rcmail and begins to download a large attachment. If the attachment doesn't complete its download sequence before the next scheduled check (1, 3, or 5 min) for new mail, the subsequent login to the IMAP Server causes UW-IMAP to kill the process that is downloading the attachment in favor of the new login connection. Here is a maillog example:
If this is really the issue you could try with imapproxy. There're other places where concurent connections may happen. In neither way connection dropping shouldn't hang apache process. If so, I don't think we'll find a solution.
I understand that UW-IMAP is old and that we should consider replacing with Dovecot or Courier, but I would like to explore the issue before initiating such a recommendation.
More specifically and in the interim, I need to know where in the code to change the option 1, 3, 5 minute(s) so that I can increase the maximum available time between checking for new mail.
The time for checking you can set in Preferences/Mailbox View, you can set it up to 30 minutes. For testing use imap_debug option, log from imap conversation maybe helpful.