#3948: Please add a hook called just before sendmail invocation -------------------------+---------------------- Reporter: tpikonen | Owner: mutt-dev Type: enhancement | Status: new Priority: minor | Milestone: Component: mutt | Version: Keywords: | -------------------------+---------------------- I'm using mutt with msmtp as sendmail and have msmtp configured with 'passwordeval', which calls gpg to decrypt the mail server password. My GPG is version 2.1 and I'm using the ncurses-based pinentry program.
Since sendmail output is redirected off the screen, terminal-based pinentry does not work and msmtp fails to send mail. If the GPG passphrase has been entered previously (within gpg-agent TTL) msmtp succeeds. There are various hooks in mutt (at least send-hook and send2-hook) which are called when sending mail, but even send2-hook is normally called before composing the message. Since I like to keep my gpg-agent TTL low, it expires in the time between send2-hook call and sendmail execution. Could a hook be added which is called just before calling sendmail? This would make ncurses-pinentry work also with a short TTL. -- Ticket URL: <https://dev.mutt.org/trac/ticket/3948> Mutt <http://www.mutt.org/> The Mutt mail user agent