FAQ about patches | More patches | Main Page | SHA256 digest for this patch

Fix a bug that makes Alpine crash when suspending it
Patch is available for version: alpine 2.00 alpine 2.01
 
This is an unlikely bug, but it can happen as follows. While a connection to an IMAP server is being closed, Alpine checks for deleted messages through a SEARCH command. This is not as relevant, as the fact that if the operation takes too long, Alpine receives a callback from c-client, which asks a question about wanting to continue waiting for the reply from the server, or disconnect the connection to the server. If you decide not not answer this question, but suspend Alpine instead, then Alpine will crash, with a "lock when already locked" message, which means that Alpine is calling c-client during a callback, a forbidden operation.
 
This patch fixes this issue by checking if a callback is in progress before the call to the IMAP server is done again. The call in this case is the one that makes Alpine check for new mail in the folder, which is the call that is avoided in this case, and this implies that the folder will be automatically closed in the case that Alpine is suspended for more than 30 minutes.

Last Updated 13:20:32 CDT Fri Jul 08 2011.