2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] forcing recalculation...
FromSent OnAttachments
Nick BartosJul 28, 2004 11:59 pm 
Tony EarnshawJul 29, 2004 8:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] forcing recalculation of quota in maildir++Actions...
From:Tony Earnshaw (ton@billy.demon.nl)
Date:Jul 29, 2004 8:37:41 am
List:net.sourceforge.lists.courier-maildrop

tor, 29.07.2004 kl. 08.59 skrev Nick Bartos:

I have some folders that each user has that I want to have the option to auto-prune old messages out of. I am planning on using a cron job to do this.

The problem is that if I manually delete files then the quota file will be inaccurate, and it would need to be recalculated.

I can delete the maildirsize file and run maildirmake -q to re-set the quota, which appears to work fine.

However I am wondering if this may cause some sort of locking issue if courier-imap or maildrop are trying to access the quota file.

I had thought about just deleting the file & letting maildrop re-create it on the next delivery, but then users are unable to look at quota utilization until the next delivery, which I don't like.

Comments? Any other ideas on how to do this?

Have the cron job delete the maildirsize file, then have it send the user a message saying that it's pruned the directories, immediately upon which maildirsize will be recreated. *shrug* ;)

--Tonni