[vchkpw] Old mailboxes
Hi. I was wondering if there is a way to set the vpopmail in order to erase the mailboxes that haven't been used for a long time. Any idea ?
Re: [vchkpw] Old mailboxes
Lucas G. Obredor wrote: Hi. I was wondering if there is a way to set the vpopmail in order to erase the mailboxes that haven't been used for a long time. Any idea ? find /home/vpopmail/domains/yourdomain/*/Maildir/new -type f -ctime +90|awk -F/ '{print $6}' stupid and quick.. but that will tell you accounts that have mail in their Maildir/new dir (not checked) for 90 days or older..
Re: [vchkpw] Old mailboxes
Lucas G. Obredor wrote: Hi. I was wondering if there is a way to set the vpopmail in order to erase the mailboxes that haven't been used for a long time. Any idea ? Hi, vdeloldusers Regards, Rick
Re: [vchkpw] Old mailboxes
thank you a lot Rick ! - Original Message - From: Rick Macdougall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:32 AM Subject: Re: [vchkpw] Old mailboxes Lucas G. Obredor wrote: Hi. I was wondering if there is a way to set the vpopmail in order to erase the mailboxes that haven't been used for a long time. Any idea ? Hi, vdeloldusers Regards, Rick
Re: [vchkpw] Old mailboxes
while i see the program in my vpopmail bin dir, i see no documentation anywhere. running with a '-h' gives a far too terse usage. i'm curious why this isn't openly documented. At 06:32 AM 9/8/2004, you wrote: Hi, vdeloldusers Regards, Rick Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com
Re: [vchkpw] Old mailboxes
Paul Theodoropoulos wrote: while i see the program in my vpopmail bin dir, i see no documentation anywhere. running with a '-h' gives a far too terse usage. i'm curious why this isn't openly documented. Hi, vdeloldusers vdeloldusers: usage: [options] options: -a age_in_days (will delete accounts older than this date) (default is 6 months or 180 days) -v (print version number and exit) -d [domain] (process only [domain]) -e (process every domain) -D (actually delete users. no users are deleted without this option) -V (verbose -- print old users that will be deleted) Regards, Rick
Re: [vchkpw] Old mailboxes
thanks. i see that the command doesn't symmetrically provide the help text, that was my error: root-POP /% vdeloldusers -h vdeloldusers: invalid option -- h error: you must supply either the -e or -d [domain] options root-POP /% vdeloldusers vdeloldusers: usage: [options] options: -a age_in_days (will delete accounts older than this date) (default is 6 months or 180 days) -v (print version number and exit) -d [domain] (process only [domain]) -e (process every domain) -D (actually delete users. no users are deleted without this option) -V (verbose -- print old users that will be deleted) it appears it bases deletion upon last auth. unfortunately, if someone has set up the account to forward elsewhere, the last auth may be old, but the address may still be in use. oh well. At 09:35 AM 9/8/2004, you wrote: Paul Theodoropoulos wrote: while i see the program in my vpopmail bin dir, i see no documentation anywhere. running with a '-h' gives a far too terse usage. i'm curious why this isn't openly documented. Hi, vdeloldusers vdeloldusers: usage: [options] options: -a age_in_days (will delete accounts older than this date) (default is 6 months or 180 days) -v (print version number and exit) -d [domain] (process only [domain]) -e (process every domain) -D (actually delete users. no users are deleted without this option) -V (verbose -- print old users that will be deleted) Regards, Rick Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com