Andreas Aardal Hanssen wrote:

>For the record:
>
>http://www.inter7.com/courierimap/README.maildirquota.html
>
>Unfortunately, the maildirsize answer I can give for 1.2 isn't an 
>uplifting one. :-)
>
>1) The size of a message takes quite a while to figure out, and the main 
>   reason for that is that the files are stored in LF/Unix style in 
>   Maildir (why, oh why?), so calculating the size requires the file to be 
>   read and converted to CRLF, which is what IMAP requires. The storing of 
>   the size in the file name does break a do-not in the (somewhat loose) 
>   Maildir spec, but the I/O load impact is the biggest problem... Opening 
>   a mailbox with 5000 messages, calculating the size of each message, 
>   renders an average mail server useless because of the immense I/O load.
>  
>

Any idea how vpopmail does this?  It seems to rebuild the maildirsize
file in a matter of seonds...

>2) maildirsize is documented to be inaccurate. For it to work precisely, 
>   _all_ software accessing the Maildir must adhere to the same rules, and 
>   this is a restriction that Binc IMAP does not enforce - Binc IMAP is a 
>   non-intrusive IMAP server.
>  
>

What's the alternative to maildirsize?  ie, how do you prevent a user
from filling up the hard drive with mail??

>For your specific need, you could implement maildirsize managing code in 
>Binc IMAP (and in your delivery agent). It shouldn't be too much code. But 
>I can't include it in 1.2 at least. It is on the list for 1.3, but an 
>efficient quota management implementation really requires a different 
>mailbox format. :-(
>  
>

Does IMAPDir have this ability?  We're basically running IMAPDir  ...  I
just have to keep the links around to satisfy vpopmail...

>Andy :-)
>  
>


-- 
---------------------------
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
---------------------------
"Something mysterious is formed, born in the silent void. Waiting alone and 
unmoving, it is at once still and yet in constant motion. It is the source of 
all programs. I do not know its name, so I will call it the Tao of Programming."

Reply via email to