Re: Managing Maildirs
From: Bill Campbell (freebsd_at_celestial.com)
Date: 12/19/03
- Previous message: Odhiambo Washington: "Managing Maildirs"
- In reply to: Odhiambo Washington: "Managing Maildirs"
- Next in thread: Eric Anderson: "Re: Managing Maildirs"
- Reply: Eric Anderson: "Re: Managing Maildirs"
- Reply: Ollie Cook: "Re: Managing Maildirs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Dec 2003 11:00:55 -0800 To: freebsd-isp@freebsd.org
On Fri, Dec 19, 2003, Odhiambo Washington wrote:
>Hiya all,
>
>Okay. I have users who are not "very familiar with these thing, you
>know" as they always tell me ;)
>Noone cleans their Trash folder when they access their mail via the imap
>server. I would like to do it for them, but I am not sure I get it
>right. I have read the man page of find, but just to be sure, can I do
>
>1. find /home/*/Maildir/.Trash/ -type f | xargs rm ??
>2. find /var/spool/virtual/*/*/Maildir/.Trash/ -type f -exec rm {} \;
>
>The * in (1) is like /home/wash/Maildir/.Trash/ and the * in (2)
>is like /var/spool/virtual/domain.tld/user1/Maildir/
>
>How are others dealing with this situation? Any good tools?
Number one above will do the trick and is far more efficient than using the
``find ...-exec'', although you might want to modify it to only nuke mail
over a certain age. To nuke all trash over 30 days old:
find /home/*/Maildir/.Trash -type f -mtime +30 | xargs rm
Bill
-- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ Breathe fire, slay dragons, and take chances. Failure is temporary, regret is eternal. _______________________________________________ freebsd-isp@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-isp To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
- Previous message: Odhiambo Washington: "Managing Maildirs"
- In reply to: Odhiambo Washington: "Managing Maildirs"
- Next in thread: Eric Anderson: "Re: Managing Maildirs"
- Reply: Eric Anderson: "Re: Managing Maildirs"
- Reply: Ollie Cook: "Re: Managing Maildirs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|