Philip suggested to Kenneth, very similarly to Sean's recommendation,
| for x in `ls -r -t *.MSG`
| do
| formail -IContent-Length: < $x >> oldmail.mbx
| done
Wouldn't one call to cat that saves n-1 calls to formail be helpful?
cat `ls -rt *.MSG` | formail -IContent-Length: -s >> oldmail.mbx
and if not, at least, shouldn't the shell be allowed to open the output file
only once instead of reopening it for each message?
for x in `ls -rt *.MSG`
do
formail -IContent-Length: < $x
done >> oldmail.mbx
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail