On Sun, May 29, 2022 at 01:15:51PM -0300, Marcelo Laia wrote:
tee >(lbdb-fetchaddr -a)|/usr/bin/msmtp -a gmail $@
Perhaps lbdb-fetchaddr is closing input before the end of the message, and tee is exiting on a SIGPIPE?
Mutt 2.2 had a fix to properly reset signals (specifically SIGPIPE) on exec(). Child processes previously inherited Mutt's ignore setting, but this caused other incorrect behavior.
Maybe adding '--output-error=exit-nopipe' to the tee command will help?Alternatively maybe capture stdin to a temp file and the perform the lbdb-fetchaddr msmtp separately?
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature