procmail
[Top] [All Lists]

Re: pruning mbox's based on number of messages?

1999-12-11 12:17:52
From: gary(_at_)Intrepid(_dot_)Com (Gary Funck)

But this still leaves the question: how many messages are in
the mailbox?  So far, I've thought of two approaches:

I'll leave it to others to debate the feasibility of your
proposed approach to the problem.  But I thought I'd point
out one possibly useful way to count messages as being
the "messages" command.  It's part of the elm package, but
works independently and is usually in a standard path if
it's on your server.

  11:11am /netcom15:~> messages
  There are no messages in your incoming mailbox.

  11:11am /netcom15:~> messages ~/Mail/procmail
  There is 1 message in folder ~/Mail/procmail.

  11:12am /netcom15:~> which messages
  /usr/local/bin/messages

-- 
    \     .-.     .-.     .-.     .-.     .-.     .-.     .-.     /
     \-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
      '-'     '-'     '-'     '-'     '-'     '-'     '-'     '-'