On Mon, Apr 6, 2009 at 12:16 PM, Jym Dyer <jym(_at_)econet(_dot_)org> wrote:
=v= I handle a similar situation like this: do a directory-wide
operation, then record the directory's modification date. Next
time around, check the directory's modification date and skip
the operation if it hasn't changed. In this situation, that way
you would know that the last message hasn't changed since the
previous operation, so you can skip the directory read.
Not sure this will work for all OSs.
Modifying code to remember last message number is
straight-forward and independent of any file system that
may be in use.