Skip to content

Commit 9bcc4cf

Browse files
committed
imapc: Handle SEARCH NO replies by forwarding the error
This is how most of the other commands already work. It just wasn't done for SEARCH.
1 parent 9381536 commit 9bcc4cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/lib-storage/index/imapc/imapc-search.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ static void imapc_search_callback(const struct imapc_command_reply *reply,
202202
if (reply->state == IMAPC_COMMAND_STATE_OK) {
203203
seq_range_array_iter_init(&ictx->iter, &ictx->rseqs);
204204
ictx->success = TRUE;
205+
} else if (reply->state == IMAPC_COMMAND_STATE_NO) {
206+
imapc_copy_error_from_reply(mbox->storage, MAIL_ERROR_PARAMS,
207+
reply);
205208
} else if (reply->state == IMAPC_COMMAND_STATE_DISCONNECTED) {
206209
mail_storage_set_internal_error(mbox->box.storage);
207210
} else {

0 commit comments

Comments
 (0)