Hi,

I hope someone can help me, I'm looking a bit stuck on this one.

My problem is that updatedb is including the all the contents of my mail folders, located in ~/.Maildir so that when I run `locate 123`, for example looking for the media-sound/mpg123 ebuild, I get very many entries like /home/stroller/.Maildir/.Some Folder/cur/1233445437574657345476 scrolling right off the screen. Clearly this is undesirable, as I am never going to try & locate an email by its unique ID, and I have also noticed that the midnight updatedb is becoming very slow.

This is the default /etc/updatedb.conf supplied with slocate:
  $ cat /etc/updatedb.conf
  # This file sets environment variables which are used by updatedb
  # filesystems which are pruned from updatedb database
  PRUNEFS="NFS nfs afs proc smbfs autofs auto iso9660 devfs tmpfs ncpfs"
  export PRUNEFS
  # paths which are pruned from updatedb database
  PRUNEPATHS="/tmp /var/tmp"
  export PRUNEPATHS
  # netpaths which are added
  NETPATHS=""
  export NETPATHS

I have found that if I change PRUNEPATHS="/tmp /var/tmp /home/stroller/.Maildir" then my emails are safely ignored, & updatedb runs fairly quickly.

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..?

Thanks,

Stroller.


-- [EMAIL PROTECTED] mailing list



Reply via email to