Hello,
Quoting a blurb from one of the other mailing lists I am on...regarding
how to detect which folders contain new mail
----------------------------------------------------------------------
There is a better way to find out which folders contain new mails if you
are using procmail to filter the mails. (This was a hack by one of my
friends) procmail allows you to set UMASK on the folders. So before doing
anything, set UMASK to 076, which means the perms will be -rwx-----x to any
folder which receives mails. now using find -perm -001, you can print the
folders which have new mails. the shell script which does this will also
have to chmod o-x on all these folders.
----------------------------------------------------------------------
How does this work? AFAIK umask only applies to new files created and not
to appending to existing files which is what procmail essentially does,
right? Or maybe my umask fundas are a little rusty?
Thanks,
Vikas