1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
This patch fixes a segfault that happens when the IMAP server sends some additional flags for the same message ID, see upstream bug http://bugs.mutt.org/3288 --- a/imap/message.c +++ b/imap/message.c @@ -288,7 +288,7 @@ continue; } /* May receive FLAGS updates in a separate untagged response (#2935) */ - if (idx < ctx->msgcount) + if (ctx->hdrs[idx] != NULL) { dprint (2, (debugfile, "imap_read_headers: message %d is not new\n", h.sid)); |