This would have used the previous error, which might not have been correct.
uint32_t seq;
unsigned int i;
- if (_mail->lookup_abort != MAIL_LOOKUP_ABORT_NEVER)
+ if (_mail->lookup_abort != MAIL_LOOKUP_ABORT_NEVER) {
+ mail_set_aborted(_mail);
return -1;
+ }
_mail->mail_stream_opened = TRUE;
/* drop any fields that we may already be fetching currently */
!imail->header_list_fetched)) {
imapc_mailbox_run_nofetch(mbox);
}
- if (imail->fetch_failed)
+ if (imail->fetch_failed) {
+ mail_storage_set_internal_error(&mbox->storage->storage);
return -1;
+ }
return 0;
}