On Fri, Feb 05, 1999 at 01:14:17PM +0000, Robin Bowes wrote:
>
> I'm looking at implementing serialmail and am delivering out-going mail
> to a maildir.
>
> I'd like to run maildirsmtp as a cron job but only if any outgoing mail
> exists, ie;
>
> if <any new mail in Maildir> then run maildirsmtp
>
> What's the "best" way to check for new mail in a Maildir?
>
Off the top of my head, why would you want to do that?
just run maildirsmtp. If there is mail in the maildir, a delivery
attempt cycle begins. If not, it exits at very little cost.
What possible gain could be had from actually checking before running?
--
John White
[EMAIL PROTECTED]
PGP Public Key: http://www.triceratops.com/john/public-key.pgp