Hello,
Our Library Management System sends mails to patrons and media vendors which are assembled in a shell script with all data (Subject, body, To, attachments, etc) by a call to the MUA mutt 2.1.1 which pipes the mail to sendmail: #!/bin/sh # # $Id: sisis2mail.sh 381380 2020-11-06 07:49:50Z apitzm $ # # filter mails ensuring mails sent are RFC compilant # the mutt program (installed by sisis-pap) assists in that # usage: sisis2mail.sh [ --cat [ file ] | # --body-as-text | # --body-as-html | # --body-as-text-and-html | # --body-as-attachment | # --attach-file filename | # --inline-images dirname ] [ file] # # input may be a file or stdin # output goes to stdout ... How could we expand this for signing mails on the fly? Kevin, I saw your reply in http://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-20210412/002737.html ... On Mon, Apr 12, 2021 at 09:50:59AM +0200, Tom wrote: >I am trying to use a GnuPG key without a passphrase to send *signed* >mails from a cron job for some non-critical, internal reporting. >Searching the archives did not give me the answer. Sorry, cryptographic operations are disabled in batch mode. I thought I had added a note to the manual about this, but I only see it in the "batch composition flow" section (in git). I'll add a note to the "encryption and signing" section too. -- Kevin J. McCarthy Is this still the case, that cryptographic operations are disabled in batch mode? I could not locate it in the man pages of mutt and muttrc. What other options do we have outside of mutt on Linux? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub