[GRLUG] Forwarding email files from maildir

Grand Rapids Linux Users Group grlug at grlug.org
Mon May 18 09:27:15 EDT 2020


Well, often one might wish to preserve that information.

If not, it wouldn't be that hard to strip off most of it. Headers end at
the first blank line.

You'd have to be careful to preserve MIME headers of course.

On Mon, May 18, 2020 at 9:22 AM Grand Rapids Linux Users Group <
grlug at grlug.org> wrote:

> On Mon, 18 May 2020, Grand Rapids Linux Users Group wrote:
>
> > To clarify how you'd do that:
> >
> > for x in /path/to/files/*; do
> >   (
> >    echo "HELO localhost"
> >    echo "MAIL FROM: <sender at address>"
> >    echo "RCPT TO: <recipient at address>"
> >    echo "DATA"
> >    cat ${x}
> >    echo ""
> >    echo "."
> >  ) | sendmail -B
> > done
> >
> Unfortunately, that is not really a good solution, as it sends the entire
> raw message, including headers (typically at least twice as big as the
> content), and, if the source was Outlook, a couple orders of magnitude of
> encoded text.
>
>         TFTR!
>
>         Lee
> --
> grlug mailing list
> grlug at grlug.org
> https://shinobu.grlug.org/mailman/listinfo/grlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://shinobu.grlug.org/pipermail/grlug/attachments/20200518/99238826/attachment.html>


More information about the grlug mailing list