El día jueves, noviembre 05, 2020 a las 11:03:00a. m. -0800, Kevin J. McCarthy escribió:
> On Thu, Nov 05, 2020 at 07:55:11PM +0100, Matthias Apitz wrote: > >It *is* supported by mutt using the following trick: one of the arguments > >to mutt is: > > > >.... | mutt -d4 -e "set sendmail=\"cat --\"" ... | sendmail -t > > I see. But wouldn't the recipients be appended to $sendmail, and then > cat complain with an error message (and error code) that the "recipient" > filenames couldn't be found? The error code would then cause Mutt to > report an error invoking $sendmail... You're correct. I simplified it to make it better understandable. The real call is: .... | mutt -d4 -e "set sendmail=\"script.sh --\"" ... | sendmail -t and script.sh which is called by mutt as you say correctly as script.sh -- some@zone just ignores the argument 'some@zone' and calls 'cat --' because the mailaddr some@zone comes to the real sendmail in STDIN as To: some@zone Subject: ... ... All the above is done within a shellscript with a lot of options to provide mail as UTF-8 text or HTML and attachments etc. and mutt makes of all the args a well formatted mail with correct headers and attachments to be piped at the end to sendmail. This master script is called from our application servers to send mails to library patrons about fees or books to be returned in time, or to book vendors as orders etc. And mutt does a real nice job here for all our needs. And as I said, all is working fine, i.e. the mails get sent fine, the only problem is this message spilt out by mutt about mail not sent. I will nail this down, it will only take some time, and I feel that it has todo with the handling on SIGCHLD which is set by the application server which calls the master script perhaps to wrong state. Needs some more debugging. Mutt itself isn't the culprit perhaps. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин) Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)