Procmail filter if more than a certain number of messages
am 05.08.2007 01:05:53 von andrew cookeHi,
How can I make a procmail rule that will only run if I already have
more than a certain number of messages (in my mail spool)?
I am running on Linux and have "mailutil check" available, as well as
the basic unix utilities, so I can probably dream up a command that
can return any appropriate value (eg "yes" or "no") depending on the
number of messages. But I can't see how to use that to control
procmail.
Any tips? I've searched around, but not found anything in a FAQ or
man page.
Thanks,
Andrew