[...]
# sed(1) will save the header. metamail(1) exctract (decode?) the message.
/bin/sed "/^From /,/^$/w $head" | /usr/bin/metamail -r -y -w -q -x 2>/dev/null
You should use reformime instead. metamail is old, buggy, and basically
unmaintained. IIRC it cannot deal with multipart/alternative message,
which then make an excellent inroad for (VBS) script worms/viruses,
or other active content.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail