Another option is to use mailutil, which works like this:
mailutil check Mail/sent.mbox
0 new message(s) (1558 unseen), 1700 total in Mail/sent.mbox
A nice thing about mailutil is that it works on remote
IMAP-accessible mailboxes as well as local mailboxes.
It ships with Pine and UW IMAP. For details, see:
<http://www.washington.edu/pine/man/#mailutil>
--
Nancy McGough <http://www.ii.com> Infinite Ink
Writing about procmail, imap, pine, spam-deflexion strategies & more
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail