<div dir="ltr">To clarify how you'd do that:<div><br></div><div>for x in /path/to/files/*; do</div><div> (</div><div> echo "HELO localhost"</div><div> echo "MAIL FROM: <sender@address>"</div><div> echo "RCPT TO: <recipient@address>"</div><div> echo "DATA"</div><div> cat ${x}</div><div> echo ""</div><div> echo "."</div><div> ) | sendmail -B</div><div>done</div><div><br></div><div>Note I don't actually use sendmail, I use exim, and I know it supports batch smtp input. I'm not 100% sure what the right arguments are for sendmail to support it, or whether you might need some extra/seperate program to support it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 18, 2020 at 9:01 AM <a href="mailto:megadave@gmail.com">megadave@gmail.com</a> <<a href="mailto:megadave@gmail.com">megadave@gmail.com</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"><div dir="ltr">Use BSMTP. The headers will get passed through as actual headers.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 14, 2020 at 5:27 PM Grand Rapids Linux Users Group <<a href="mailto:grlug@grlug.org" target="_blank">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">----- Message Text -----<br>
Have a bunch of emails in Maildir format, and need to forward to a<br>
different email address.<br>
<br>
Tthe normal "mail <a href="mailto:new@somewhere.com" target="_blank">new@somewhere.com</a> < filemane" works, but it forwards the<br>
raw file; it would be a lot cleaner if it was possible to strip off the<br>
headers first.<br>
<br>
Thanks!<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>
</blockquote></div>