> On Dec 4, 2003, at 2:11 am, Collins Richey wrote:
> 
> > On Thu, 4 Dec 2003 01:52:42 +0000 Stroller 
> > <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> It is conceivable, however, that I might have several users on the
> >> system, each of whom has a large Maildir who yet may 
> desire to be able
> >> to locate other files in /home. PRUNEPATHS="/tmp /var/tmp
> >> /home/*/.Maildir" does not work, nor does PRUNEPATHS="/tmp /var/tmp
> >> /.Maildir".
> >>
> >> Can anyone possibly suggest to me how I can exclude from 
> the slocate
> >> database users' Maildirs, but NOT their other /home files..?
> >
> > I would think add one statement for each user.  
> > /home/user1/.maildir....
> >
> > Personally, I just execute 'updatedb -e dir1,dir2,dir3
> >
> > where dir1, etc. is the fully qualified path for a 
> directory I want to 
> > exclude.
> 
> Whilst this is practical on my current system, it wouldn't be 
> should I 
> expand to 50... 500... 5000 users. So I guess that in that case I'd 
> have to write a script to read usernames from /etc/passwd & enter 
> "/home/$USERNAME/.Maildir" into PRUNPATHS, which is rather a 
> chore. Any 
> other suggestions much appreciated.

Changing the code?? Seriously...

--
[EMAIL PROTECTED] mailing list

Reply via email to