]> granicus.if.org Git - neomutt/commit
Silence imap progress messages for pipe-message. (see #3929)
authorKevin McCarthy <kevin@8t8.us>
Sat, 8 Apr 2017 21:18:26 +0000 (14:18 -0700)
committerRichard Russon <rich@flatcap.org>
Sun, 9 Apr 2017 17:47:36 +0000 (18:47 +0100)
commitb88fe3b41f2829c1036c37b41d624eba1d74d0f4
tree18b969c2497b45d0d8955354d274ed14c8c04fca
parent0460522c108faa8c064153531ebaf5f56249b027
Silence imap progress messages for pipe-message. (see #3929)

_mutt_pipe_message() calls endwin(), and then calls pipe_msg().  If an
imap message body hasn't already been downloaded, this can end up
calling imap_fetch_message().

The progress messages in imap_fetch_message() were restoring curses,
just after extract_url was running.  This was leading to a condition
where mutt curses didn't think the screen had changed after
extract_url exited.

There was already a check for isendwin() inside imap_fetch_message(),
but it wasn't wrapped around the progressbar creation/usage.  Add a
check for those places too.
imap/message.c