Date: Sun, 03 Jun 2007 08:01:22 -0400 From: Christopher Hilton <chris@vindaloo.com> To: Thierry Lacoste <lacoste@univ-paris12.fr> Cc: freebsd-questions@freebsd.org Subject: Re: deleting old mails Message-ID: <4662AD92.8080106@vindaloo.com> In-Reply-To: <200705312221.23108.lacoste@univ-paris12.fr> References: <200705312221.23108.lacoste@univ-paris12.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Thierry Lacoste wrote: > I'm running a postfix server on FreeBSD 6.1 and I'd like to have > a cronjob which deletes old mails from mboxes in /var/mail. > > I tried mail/archivemail but it cannot create it's lock file > in /var/mail because it runs as the user owning the mailbox > on which it operates. > > I also tried mail/archmbox but I'm wondering if it is safe > to use it while postfix is running. Quoting the manual: > > A few words about locking. There has been a discussion about archmbox > handles file locking. The answer is simple: no mailbox is ever locked. > The reason behind this behavior is that I want archmbox to be as least > invasive as possible, so other kind of checks are performed to ensure > that no data is lost (mailbox has changed/mailbox is in use by another > program). I will surely add some locking mechanism in the future. > > Any help would be appreciated. > Have you consider using Maildir/ format instead? A switch to Maildir/ format would allow you to use the "find" program to weed out your mailbox and locking is not an issue. -- Chris -- __o "All I was doing was trying to get home from work." _`\<,_ -Rosa Parks ___(*)/_(*)___________________________________________________________ Christopher Sean Hilton <chris | at | vindaloo.com> pgp key: D0957A2D/f5 30 0a e1 55 76 9b 1f 47 0b 07 e9 75 0e 14
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4662AD92.8080106>