Re: [Exim] maildir_use_size_file and zero quota (views sough…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Anand Buddhdev, Oliver Siegmar
CC: exim-users
Subject: Re: [Exim] maildir_use_size_file and zero quota (views sought)
On Mon, 10 May 2004, Anand Buddhdev wrote:

> > Apparently, the Courier imap daemon does not treat 0 in the maildirsize
> > file as "no quota", but as "zero quota", and what it wants is for there
> > to be no maildirsize file when there is no quota. I have therefore been
> > asked to change Exim's behaviour.
>
> Now, this doesn't seem right. I'm using courier-imap 3.0.3 on my
> servers, and it appears to treat 0 in the maildirsize file as "no
> quota" and it doesn't enforce any quota. I am not a C programmer, but
> a look at the source code of courier-imap seems to agree with my
> observation. From file maildir/maildirquota.h:
>
> struct maildirquota {
>         off_t nbytes;   /* # of bytes, 0 - unlimited */
>         int nmessages;  /* # of messages, 0 - unlimited */
> };


[snip]

> However, courier-imap maintains the maildirsize file even if the quota
> is 0, which is what exim also does. So I believe exim is correct and
> there's no need to change it. Courier-imap's Maildir quota
> implementation is, after all, the reference implementation.


Oliver, it was you that reported:

| If quota (expanded) is set to 0, quota should be inactive. Exim creates a
| maildirsize file with '0S,0C' - an IMAP server (I tested courier-imapd)
| treats that as 0 bytes, 0 mails - not as unlimited.

|
| In my opinion if quota is unset no maildirsize file should be created -
| that would fix this bug (at least with courier-impad, maybe others).


So I have two people telling me two different things. :-(

Until this is resolved, I think my best plan is not to make any
change...

Philip

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book