Commit 507b09cc 507b09cc57c31e17ebd391ecad2a1d660eb3882d by Alain Magloire

* mailbox/mbx_imap.c (message_operation): Check if the

	imap server went away(f_imap->isopen) and flag an error.
1 parent a3ea3ecc
2001-09-04 Alain Magloire
* mailbox/mbx_imap.c (message_operation): Check if the
imap server went away(f_imap->isopen) and flag an error.
2001-09-03 Alain Magloire
* mailbox/folder_imap.c (imap_use): Check return value.
......
......@@ -1727,6 +1727,9 @@ message_operation (f_imap_t f_imap, msg_imap_t msg_imap, char *buffer,
}
if (plen)
*plen = f_imap->callback.total;
if (status == 0 && f_imap->isopen == 0 && f_imap->callback.total == 0)
status = EBADF;
/* Clear the callback. */
f_imap->callback.buffer = NULL;
f_imap->callback.buflen = 0;
......