- if ((rc = smtp_setup_msg()) > 0)
- {
- BOOL ok = receive_msg(FALSE);
- search_tidyup(); /* Close cached databases */
- if (!ok) /* Connection was dropped */
- {
- cancel_cutthrough_connection(TRUE, US"receive dropped");
- mac_smtp_fflush();
- smtp_log_no_mail(); /* Log no mail if configured */
- exim_underbar_exit(EXIT_SUCCESS);
- }
- if (!message_id[0]) continue; /* No message was accepted */
- }
- else /* bad smtp_setup_msg() */