procmail
[Top] [All Lists]

Re: counting msgs in mbox

2003-10-08 13:31:06
On Wed, 8 Oct 2003, Jim Osborn wrote:

I don't know of any way to get the count directly from formail or
procmail, so it's on to formail -s <something> <mbox-to-count.
My question is: what's the most efficient <something>?

formail -s sh -fc 'echo $FILENO' < mbox | tail -1

Not as efficient as the grep|wc that Robert suggested, but more accurate.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>