freebsd-ports/mail/mutt/files/patch-imap-message.c
Chris Rees bb040dde3e Move mail/mutt to mail/mutt14
Move mail/mutt-lite to mail/mutt14-lite

Move mail/mutt-devel to mail/mutt

Moving mail/mutt-devel-lite to mail/mutt-lite will follow next to avoid
breaking the cvs exporter

PR:		ports/169546
Suggested by:	obrien
Approved by:	maintainer
2012-07-22 09:15:04 +00:00

15 lines
487 B
C

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
--- imap/message.c
+++ 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));