5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] maildirquota
FromSent OnAttachments
Priyadi Iman NurcahyoNov 18, 2000 12:34 pm 
Priyadi Iman NurcahyoNov 19, 2000 5:07 am 
Olivier M.Nov 19, 2000 6:14 am 
Priyadi Iman NurcahyoNov 19, 2000 10:59 am 
Priyadi Iman NurcahyoNov 19, 2000 9:13 pm 
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: [courier-users] maildirquotaActions...
From:Priyadi Iman Nurcahyo (priy@priyadi.id.org)
Date:Nov 19, 2000 5:07:56 am
List:net.sourceforge.lists.courier-users

On Sab, 18 Nov 2000, Sam Varshavchik wrote:

as I can recall, someone on this list mentioned that removing file maildirsize will disable quota on that maildir, however, the document states that maildirsize will be recreated during quota calculation, so only removing it is rather useless to me.

maildirsize is recreated during quota calculation. If maildirsize does not exist, there is no quota to recalculate in the first place.

this is from README.maildirquota.txt:

4. When done, you have the grand total of the number of messages and their total size. Create a new maildirsize by: creating the file in the tmp subdirectory, observing the conventions for writing to a Maildir. Then rename the file as maildirsize.Afterwards, stat all new and cur subdirectories again. If you find a timestamp later than the saved timestamp, REMOVE maildirsize.

this is the part that confused me, why should we remove maildirsize at all?

FYI, i'm in the process of creating some perl modules for maildir++...

To avoid reinventing the wheel you should simply create Perl bindings for the respective quota functions in libmaildir.a

i'd love to, however, the modules are almost done in pure perl, it would require more time to update it to use libmaildir.a...