Menu

#2 libmpq issue?

open
nobody
None
5
2006-09-30
2006-09-30
No

Hello,

Thank you for writing the quite fast and useful tool
libmdq and Maildir::Quota.

I am having a problem getting numbers for maildirs that
are over quota.

In mdq.c, it would appear that mdq_get does a check to
see if mdq_test (q,0,0) == -1 and then bails, which if
I'm reading the code right, will always be true on a
maildir that's over quota, since mdq_test returns -1 if
mdq_quota_check returns -1, which it will if a box is
over quota. Other consequences are that you cannot use
libmdq to make max_files or max_bytes less than the
current maildir's actual size.

I'm able to do a quick hack, and stop evaluating
mdq_test when doing an mdq_get, but I suspect that's
not really the way to fix the problem in the long run.

Discussion


Log in to post a comment.