On 2022/05/29 12:15, Marcelo Laia wrote:

If I send a message using

tee >(lbdb-fetchaddr -a)|/usr/bin/msmtp -a gmail $@

the attached file with embedded image got corrupted

What is that line intended to do? Is the message intended to be on tee's standard input? If so, how does it get there? That line redirects tee's standard output to -- where? What will go through the pipe to msmtp?

What is lbdb-fetchaddr? Putting it in () runs it in a subshell; that does not return a string.

If you're trying to pass the message to be sent through tee (standard input to standard output), through a pipe to the standard input of msmtp, I don't think that command does that.

Reply via email to