On Tue, 2008-02-26 at 14:05 +0100, Ralf Hildebrandt wrote:
> > > Using:
> > >   quota: maildir
> > >   quota_rule: Trash:storage=100M
> > >   quota_warning: storage=90%% /usr/local/scripts/quota-warning 90
> > >   quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95
> > >   quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99
> > > now :)
> > 
> > Aren't there other quota rules? You've here specified that Trash mailbox
> > has 100MB quota, but other mailboxes don't have any. Or do you get a
> > quota_rule2 from userdb?
> 
> I thought the rest would be fetched from $HOME/Maildir/maildirsize!!

Now that I looked at the code, surprisingly it does. :) But this is also
the reason why the quota warnings don't work. They calculate the
percentage from the quota_rule=* line. Since it doesn't exist, those are
all calculated to storage=0. I'll see if I can do something about it.

> * users have 500M usually
> * except I manually edit their HOME/Maildir/maildirsize

This isn't possible currently. There's no way to define "use
maildirsize, but use a default if it doesn't exist". Creating the file
with post-login scripting would be one possibility. But I'll see if I
can do something about this as well.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to