From: Kevin McCarthy Date: Wed, 7 Jun 2017 01:38:47 +0000 (-0700) Subject: Add a mutt_endwin() before invoking $sendmail. (closes #3948) X-Git-Tag: mutt-1-9-rel~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2a54fadbe8019a4cc48b37585b21833d2da17ca;p=mutt Add a mutt_endwin() before invoking $sendmail. (closes #3948) This is to support invoking a program such as msmtp that can use gpg to decrypt a password. The ncurses pinentry can corrupt the screen unless we exit curses. --- diff --git a/sendlib.c b/sendlib.c index bd077083..336bcee2 100644 --- a/sendlib.c +++ b/sendlib.c @@ -2446,6 +2446,7 @@ mutt_invoke_sendmail (ADDRESS *from, /* the sender */ args[argslen++] = NULL; + mutt_endwin (NULL); if ((i = send_msg (path, args, msg, option(OPTNOCURSES) ? NULL : &childout)) != (EX_OK & 0xff)) { if (i != S_BKG)