#3316: mutt hangs when some IMAP FETCH responses were ignored ----------------------+----------------------------------------------------- Reporter: mlichvar | Owner: brendan Type: defect | Status: new Priority: major | Milestone: Component: IMAP | Version: Keywords: | ----------------------+----------------------------------------------------- I got a report for that mutt hangs when fetching headers:
https://bugzilla.redhat.com/show_bug.cgi?id=516210 It seems to be caused by server returning for some messages this: {{{ [2009-08-15 11:02:13] 4< * OK Message 1992 no longer exists [2009-08-15 11:02:13] 4< * 1992 FETCH (FLAGS (\Seen Old) UID 4076 INTERNALDATE "24-Sep-2008 10:57:10 +0200" RFC822.SIZE 5862 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT- TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] "") }}} mutt prints to debug "msg_fetch_header: ignoring fetch response with no body" and it will hang in imap_read_headers() as msgno won't reach msgend to end the for cycle. Making the cycle break after the last OK is received makes mutt segfault, there are holes in ctx->hdrs. -- Ticket URL: <http://dev.mutt.org/trac/ticket/3316> Mutt <http://www.mutt.org/> The Mutt mail user agent