This feature allows enabling message security in modes that don't enable it by default. Those include batch mode, sending a postponed message, and resending a message.
This allows using NeoMutt as a driver for git-send-email(1), to send patches in signed and/or encrypted mail.
To send an email from a file, enabling cryptographic operations as when sending interactively, simply use the
-C
flag.
$ neomutt -C -H - < /mail/to/be/sent
# Example NeoMutt config file for the cli-crypto feature. set pgp_default_key = "1111111111111111111111111111111111111111" # Sign all mail set crypt_autosign = yes # Encrypt mail if all recipients have valid public keys set crypt_opportunistic_encrypt = yes # Self encrypt mail set crypt_self_encrypt = yes # vim: syntax=neomuttrc
# Example .gitconfig config file for the cli-crypto feature.
[sendemail]
sendmailcmd = neomutt -C -H - && true