On Thu, 4 Dec 2003 01:52:42 +0000 Stroller <[EMAIL PROTECTED]>
wrote:

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

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.

HTH,

-- 
Collins Richey - Denver Area
if you fill your heart with regrets of yesterday and the 
worries of tomorrow, you have no today to be thankful for.



--
[EMAIL PROTECTED] mailing list

Reply via email to