X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fcommand.c;h=2039e54ed74e388218256157e2f915fe9d0524b7;hb=bc7188e9cfc88be32614c7c6874993e83cc07fe4;hp=ac192981d11eb6fffd74c66aab305f2cc9653c8f;hpb=355d6c883e8aafb8f424c22aa576cf8262ed9e58;p=apps%2Fmadmutt.git diff --git a/imap/command.c b/imap/command.c index ac19298..2039e54 100644 --- a/imap/command.c +++ b/imap/command.c @@ -139,9 +139,8 @@ int imap_cmd_step (IMAP_DATA * idata) 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)) { @@ -493,6 +492,9 @@ static void cmd_parse_fetch (IMAP_DATA * idata, char *s) 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;