Re: [dwm] irssi/mutt in status bar

From: Bryan <p0q7vgxic2_AT_lydgate.e4ward.com>
Date: Thu, 11 Jan 2007 13:46:33 +0000

On Wed, Jan 10, 2007 at 11:23:52AM +0000, Tener Hades wrote:
> For mutt, I count the "Message-ID:" headers in my spoolfile ($MAIL).
> Thus:
> echo `grep "^Message-ID:" $MAIL | wc -l`
>
> But this is prone to be misleading as not all messages arrive with a
> Message-ID: header, and some arrive with multiple. But it's better
> then nothing.

With grepmail (http://grepmail.sourceforge.net/) you can do something
like this:

        grepmail -B -H -v ^Status:\ RO /path/to/mbox | wc -l

Bryan
Received on Thu Jan 11 2007 - 14:46:42 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:34:35 UTC