Skip to content

Commit

Permalink
imapc: Don't allow "*" in SEARCH replies
Browse files Browse the repository at this point in the history
Doesn't fix anything, but makes the parsing a bit more correct.
  • Loading branch information
sirainen committed Dec 15, 2016
1 parent 78b806a commit f2c3abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib-storage/index/imapc/imapc-mailbox.c
Expand Up @@ -515,7 +515,7 @@ imapc_untagged_esearch_gmail_pop3(const struct imap_arg *args,
t_array_init(&rseqs, 64);
if (!imap_arg_atom_equals(&args[0], "ALL") ||
!imap_arg_get_atom(&args[1], &atom) ||
imap_seq_set_parse(atom, &rseqs) < 0) {
imap_seq_set_nostar_parse(atom, &rseqs) < 0) {
i_error("Invalid gmail-pop3 ESEARCH reply");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib-storage/index/imapc/imapc-search.c
Expand Up @@ -293,6 +293,6 @@ void imapc_search_reply(const struct imap_arg *args,
if (args[0].type != IMAP_ARG_EOL &&
(!imap_arg_atom_equals(&args[0], "ALL") ||
!imap_arg_get_atom(&args[1], &atom) ||
imap_seq_set_parse(atom, &mbox->search_ctx->rseqs) < 0))
imap_seq_set_nostar_parse(atom, &mbox->search_ctx->rseqs) < 0))
i_error("Invalid ESEARCH reply");
}

0 comments on commit f2c3abe

Please sign in to comment.