RE: [Exim] Maildir New User

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jason Dale
Date:  
À: Kirill Miazine
CC: Exim list
Sujet: RE: [Exim] Maildir New User
I haven't been following this thread, but there is another
format of the find command that I use:

find ~/Maildir -type f -mtime +7 -ok rm -f {} \;

This does the same as below, except that by using '-ok'
instead of '-exec' (exec is similar to xargs in it's
function), the shell will prompt you for confirmation
before actually removing matched files.

Jason

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org]On
Behalf Of Kirill Miazine
Sent: 20 November 2003 09:09 AM
To: Daniel Bendersky
Cc: exim-users
Subject: Re: [Exim] Maildir New User


* Daniel Bendersky [2003-11-20 02:44]:
> I just starting to use maildir in my MAIL systems and I need to know
> where to find tools for deleting old mails.


E.g.

    find ~/Maildir -type f -mtime +7 | xargs rm -f


Just a warning: think twice before you type. The above command WILL
DELETE messages older than 7 days in your Inbox and ALL folders.

Greetings
K.

--
Kirill Miazine
mailto:km@krot.org
http://km.krot.org/


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##