New to Mutt, unable to send messages in *any* attempted way
Derek Martin
invalid at pizzashack.org
Thu May 19 18:12:31 UTC 2022
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20220519/026ea055/attachment.asc>
More information about the Mutt-users
mailing list