Quoting Chip Old ([EMAIL PROTECTED]):
> On Thu, 19 Sep 2002, Alan Brown wrote to Kenneth Porter:
> 
> > find -atime is probably a better tool for this.
> > [snip]
> > A non-accessed mail file will have an old atime stamp, even if there's
> > been new mail, so tracking these is fairly easy..
> 
> We run this early every morning as a cron job, on the theory that anyone
> who hasn't accessed his/her mail in 30 days isn't interested in e-mail:
> 
>   find /var/mail -atime +30 -print -exec rm {} \;

Um, except that if they GET a message, that atime is updated.

No, better is to look at the .$user.pop to see when they last logged in.
or a simple log parsing script that sees a user and sticks
that username in a hash with the time.  At the end, it prints
out the hash with the time (which will be the last access
time).

Reply via email to