Spam sorting (was Re: Install assistance needed in Berkeley area)

Claude Rubinson rubinson@email.arizona.edu
Sun, 11 Jan 2004 14:25:07 -0700


On Sun, Jan 11, 2004 at 12:22:10PM -0800, Tony Godshall wrote:
> Say, any quick way to count the number of messages in a mbox file?
> Is "grep -c '^From' file" sufficient?

What's "sufficient" depends upon your demands.  At a minimum you want
to be searching for "\nFrom ".  But it's not really that simple.  See
http://www.jwz.org/doc/content-length.html.

Claude