*** mspools.el is useful for determining which mail folders have mail waiting to be read in them. It works with procmail.