"David W. Tamkin" <dattier(_at_)ripco(_dot_)com> writes:
...
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
Kenneth had clarified in a latter message that the files didn't start with
"From " lines, so the above would possiblely result in input to formail
that can't be reliable split.
On the otherhand, your other suggestion:
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
will work just fine.
Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail