Re: Number of .qmail-qconfirm files

Chris Wilkes <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Sat, Feb 21, 2004 at 11:33:51AM -0500, Charlie Brady wrote:
> 
> qconfirm's actions depend on creating (potentially) multitudes of
> ephemeral .qmail files in a user's home directory. Depending on the
> file system and OS in use, this can lead to performance issues
> whenever the home directory is searched - which is likely to be
> fairly often.

What I do is run the following script manually every couple of days, I
should probably put it in a cronjob:
  #!/bin/bash
  rootdir=/var/qmail/maildirs/userid
  pending=${rootdir}/.qconfirm/pending
  days=3
  find $pending -maxdepth 1 -atime +$days -exec unlink {} \;
  find $rootdir -maxdepth 1 -atime +$days \
    -name '.qmail-classified-qconfirm-*' -exec unlink {} \;
which deletes pending email addresses and .qmail-classified-qconfirm-*
files that are older than 3 days.

> This also precludes using qconfirm in a situation where the home
> directory is read-only.

Didn't you have to have write access to setup the initial .qmail
qconfirm script in the first place?

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.