return IMAP_CMD_BAD;
/* server demands a continuation response from us */
- if (!ascii_strncmp (cmd->buf, "+ ", 2)) {
+ if (cmd->buf[0] == '+')
return IMAP_CMD_RESPOND;
- }
/* tagged completion code */
if (!ascii_strncmp (cmd->buf, cmd->seq, SEQLEN)) {
for (cur = 0; cur < idata->ctx->msgcount; cur++) {
h = idata->ctx->hdrs[cur];
+ if (!h)
+ break;
+
if (h->active && h->index + 1 == msgno) {
debug_print (2, ("Message UID %d updated\n", HEADER_DATA (h)->uid));
break;