Crap.
This bug is also present in 1.6.24.
Does anyone have a 1.6.24 patch for this? Upgrading to 2.0.x is not in
our plans until it settles more.
> I've identified the quota bug.
>
> Basically, when setting a new quota like "user.leg", the server wasn't
> including the mailbox "user.leg" in the quotaroot---only submailboxes.
>
> It'll be fixed in the next revision.
>
> Thanks for the fix to quota.c.
>
> Larry
>
> Date: Thu, 12 Oct 2000 19:34:56 +0200 (CEST)
> From: Marco Colombo <[EMAIL PROTECTED]>
> cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
>
> On Wed, 27 Sep 2000, Lawrence Greenfield wrote:
>
> > I've had a few reports of this. I haven't tested the quota support
> myself > in some time, so it would be a good bet that it's broken in
> the later 2.0 > releases. I'll bump this up and try to look at it in
> the next week. >
> > (Remember, patches always appreciated!)
> >
> > Thanks,
> > Larry
> >
> > --On 09/21/2000 11:46:38 PM +0200 Michael Riedel <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > On 12 Sep 2000, at 18:06, Shabnam Niroomand wrote:
> > >
> > > I have the same problem with the SuSE Distribution.
> > > May be a bug in 2.0.x ?
> > >
> > >
> > >> Hello;
> > >>
> > >> I have such a problem in 2.0.7 (on Redhat 6.2) too, whereas I was
> > >> working with this in 1.6.22 correctly. Also as I checked,
> regardless > >> of 1.6.x versions, the files in
> /var/imap/quota/[x]/user.[uname] won't > >> be updated correctly!
> > >>
> > >> Do you have any solution?
> > >>
> > >> -- Sbnm
> > >> ------------- Begin Forwarded Message -------------
> > >>
> > >> Hi all
> > >>
> > >> I am using Cyrus 2.0.6 with Sendmail 8.10.2 configured with lmtp
> the > >> way it says in the docs. The delivery works fine. However,
> the quota > >> is not working. When I run /usr/cyrus/bin/quota:
> > >>
> > >> Quota % Used Used Root
> > >> 1024 0 0 user.foo
> > >>
> > >> No matter how much mail is in the mailbox, the usage is always
> zero, > >> and therefore messages are still delivered into the mailbox
> even if > >> it's over the limit. Have anyone had this problem? Thank
> you. > >>
> > >>
> > >> -Oleg.
> > >>
> > >> ------------- End Forwarded Message -------------
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > Bye
> > > |\/|ichael Riedel
> >
>
> Same problem here.
> Tried to solve it with a quota -f, but found a bug in it.
>
> $ /opt/cyrus-imapd/bin/quota -f user.mtest
> quota: Internal error: assertion failed: cyrusdb_db3.c: 187: dbinit &&
> fname && ret
>
> Here's the cause: mboxlist_open() is called without previously
> calling mboxlist_init().
> After I fixed it, now quota work:
>
> $ /opt/cyrus-imapd/bin/quota -f user.mtest
> Quota % Used Used Root
> 2000 95 1909 user.mtest
>
> (the above is still needed the first time)
>
> $ /opt/cyrus-imapd/bin/quota user.mtest
> Quota % Used Used Root
> 2000 95 1909 user.mtest
>
> I can confirm:
>
> 1) delivery gets deferred if user is exceeding quota;
> 2) imap clients are unable to store messages on a 'over quota' mbox;
> 3) the user gets warnings for both a nearly full mbox and a over quota
> one at connection time.
> 4) once 'initialized' with quota -f, the quota is kept up to date by
> the IMAP server. Shouldn't the server initialize it upon receiving
> a setquota command (e.g. via cyradm)?
>
> System: RHL 6.2 + cyrus-imapd-2.0.7 (internal RPM)
> Clients: pine 4.21 and MS Outlook.
>
> Patch for quota.c follows: B-)
>
> --- cyrus-imapd-2.0.7/imap/quota.c.quotafix Tue May 23 22:52:30 2000
> +++ cyrus-imapd-2.0.7/imap/quota.c Thu Oct 12 19:06:16 2000
> @@ -142,7 +142,11 @@
>
> r = buildquotalist(argv+optind, argc-optind);
>
> - if (!r && fflag) r = fixquota(argc-optind);
> + if (!r && fflag) {
> + mboxlist_init(0);
> + r = fixquota(argc-optind);
> + mboxlist_done();
> + }
>
> if (!r) reportquota();
>
>
> I hope it's sane.
>
> P.S.
> Somebody will kindly explain me why I can't see my messages on the
> list?
>
> .TM.
> --
> ____/ ____/ /
> / / / Marco Colombo
> ___/ ___ / / Technical Manager
> / / / ESI s.r.l.
> _____/ _____/ _/ [EMAIL PROTECTED]
>
>