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
1 2001-09-04 Alain Magloire
2
3 * mailbox/mbx_imap.c (message_operation): Check if the
4 imap server went away(f_imap->isopen) and flag an error.
5
1 2001-09-03 Alain Magloire 6 2001-09-03 Alain Magloire
2 7
3 * mailbox/folder_imap.c (imap_use): Check return value. 8 * 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, ...@@ -1727,6 +1727,9 @@ message_operation (f_imap_t f_imap, msg_imap_t msg_imap, char *buffer,
1727 } 1727 }
1728 if (plen) 1728 if (plen)
1729 *plen = f_imap->callback.total; 1729 *plen = f_imap->callback.total;
1730
1731 if (status == 0 && f_imap->isopen == 0 && f_imap->callback.total == 0)
1732 status = EBADF;
1730 /* Clear the callback. */ 1733 /* Clear the callback. */
1731 f_imap->callback.buffer = NULL; 1734 f_imap->callback.buffer = NULL;
1732 f_imap->callback.buflen = 0; 1735 f_imap->callback.buflen = 0;
......