<div dir="ltr">Well, often one might wish to preserve that information.<div><br><div>If not, it wouldn't be that hard to strip off most of it. Headers end at the first blank line.</div><div><br></div><div>You'd have to be careful to preserve MIME headers of course.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 18, 2020 at 9:22 AM Grand Rapids Linux Users Group <<a href="mailto:grlug@grlug.org">grlug@grlug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 18 May 2020, Grand Rapids Linux Users Group wrote:<br>
<br>
> To clarify how you'd do that:<br>
><br>
> for x in /path/to/files/*; do<br>
>   (<br>
>    echo "HELO localhost"<br>
>    echo "MAIL FROM: <sender@address>"<br>
>    echo "RCPT TO: <recipient@address>"<br>
>    echo "DATA"<br>
>    cat ${x}<br>
>    echo ""<br>
>    echo "."<br>
>  ) | sendmail -B<br>
> done<br>
><br>
Unfortunately, that is not really a good solution, as it sends the entire<br>
raw message, including headers (typically at least twice as big as the<br>
content), and, if the source was Outlook, a couple orders of magnitude of<br>
encoded text.<br>
<br>
        TFTR!<br>
<br>
        Lee<br>
-- <br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="https://shinobu.grlug.org/mailman/listinfo/grlug" rel="noreferrer" target="_blank">https://shinobu.grlug.org/mailman/listinfo/grlug</a><br>
</blockquote></div>