Maildir -- purging old messages
From: Bill Moseley (moseley_at_hank.org)
Date: 08/04/03
- Previous message: Colin Watson: "Re: Easy/Fast way to view a package's debian/changelog"
- Next in thread: Mark Roach: "Re: Maildir -- purging old messages"
- Reply: Mark Roach: "Re: Maildir -- purging old messages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 4 Aug 2003 10:40:53 -0700 To: debian-user@lists.debian.org
I have a spam folder. I check it once in a while for false positives
(rarely found).
I'd like to run a cron job that would clean out messages older than a
15 days.
Any harm in doing something like:
rm `find ~/Maildir/.spam -type f -mtime 15`
or maybe better to pipe find to xargs
find ~/Maildir/.spam -type f -mtime 15 -print0 | xargs -null rm -f
Each folder has three subdirectories: cur, new, and tmp. Plus there's a
courierimapuiddb file. Messages look like this in "new":
1059968029.13519_1.mardy
and like this in "cur":
1059944854.6608_1.mardy:2,S
If the above find removes the courierimapuiddb will that cause any
problems?
I'm not quite sure I understand when messages are moved from "new" to
"cur".
-- Bill Moseley moseley@hank.org -- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Colin Watson: "Re: Easy/Fast way to view a package's debian/changelog"
- Next in thread: Mark Roach: "Re: Maildir -- purging old messages"
- Reply: Mark Roach: "Re: Maildir -- purging old messages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]