[neomutt-devel] [PATCH] Allow crypto operations in batch mode.
Alejandro Colomar
alx at kernel.org
Mon Nov 6 18:41:18 CET 2023
Hi!
On Mon, Nov 06, 2023 at 06:38:33PM +0100, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <alx at kernel.org>
I've sent this patch as a test of the feature. I did it with mutt(1),
which works for sending mail from stdin. Since the source code is
similar, I could patch it in the same way. As you can see, it works.
Now I'll use this feature some time to see if I find any glitches.
I sent the mail with:
$ git format-patch --stdout -1 HEAD --to neomutt-devel at neomutt.org | ./mutt -H -
Cheers,
Alex
> ---
> send.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/send.c b/send.c
> index 21ecf041..642b2bb4 100644
> --- a/send.c
> +++ b/send.c
> @@ -2254,7 +2254,7 @@ static int send_message_resume_first_edit (SEND_CONTEXT *sctx)
> * This is done after allowing the user to edit the message so that security
> * settings can be configured with send2-hook and $edit_headers.
> */
> - if (WithCrypto && (sctx->msg->security == 0) && !(sctx->flags & (SENDBATCH | SENDMAILX | SENDPOSTPONED | SENDRESEND)))
> + if (WithCrypto && (sctx->msg->security == 0) && !(sctx->flags & (SENDPOSTPONED | SENDRESEND)))
> {
> if (
> #ifdef USE_AUTOCRYPT
> --
> 2.42.0
>
--
<https://www.alejandro-colomar.es/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20231106/baf745eb/attachment.sig>
More information about the neomutt-devel
mailing list