]> granicus.if.org Git - mutt/commitdiff
Add a mutt_endwin() before invoking $sendmail. (closes #3948)
authorKevin McCarthy <kevin@8t8.us>
Wed, 7 Jun 2017 01:38:47 +0000 (18:38 -0700)
committerKevin McCarthy <kevin@8t8.us>
Wed, 7 Jun 2017 01:38:47 +0000 (18:38 -0700)
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.

sendlib.c

index bd0770835551a4e83728e5a2be1e92a31f4cc9a4..336bcee2840efbdb190984f820905947dd594542 100644 (file)
--- 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)