file corruption after transmission over email

Kevin J. McCarthy kevin at 8t8.us
Thu Jun 2 03:20:34 UTC 2022


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20220601/a72020a6/attachment.asc>


More information about the Mutt-users mailing list