On Thu, May 19, 2022 at 11:06:38AM -0700, Kevin J. McCarthy wrote: > On Thu, May 19, 2022 at 12:36:39PM -0500, X Tec wrote: > > set sendmail="/usr/bin/msmtp [...] --passwordeval=$(gpg --no-tty -q -d > > ~/.user.gpg)" [...] > > Hope someone else could give other advise, or if this is really not > > possible in Mutt, to confirm *why*. > > Sorry, this isn't currently possible in Mutt. The $sendmail variable is > handled specially: it's tokenized by space and invoked directly via > execvp(). So you won't be able to use arguments with spaces in them inside > the variable, or any shell quoting since it doesn't pass through the shell.
Couldn't you do something like the following? set my_sendmail=/usr/bin/msmtp [...] --passwordeval=$(gpg --no-tty -q -d ~/.user.gpg)" set sendmail=$my_sendmail Don't know, haven't tried it, but as long as the first thing evaluates to something that sendmail's tokenization can handle, seems like it should work... -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
signature.asc
Description: PGP signature