This is a patch to vqadmin 2.3.6 that does 3 things:
1) 2.3.6 added bogus entries to dir_control (at least
if vpopmail is built with --enable-many-domains=y) when
trying to get a count of users in a domain. Fixed by
copying code from qmailadmin for counting users
instead.
2) vlimits support. I'm not sure which version of
vpopmail introduced vlimits, but vqadmin doesn't need
to modify/know about .qmailadmin-limits (if it even
exists) anymore.
3) Quotas are now displayed and can be entered in the
formats: nnM, nnK, or nn (bytes).
I can now trust vqadmin to work with recent versions of
vpopmail and qmailadmin without screwing up my quotas,
not setting quotas, adding garbage to dir_control (I
don't think it hurt anything, though), etc.
patch (ver 2) to vqadmin-2.3.6
Logged In: YES
user_id=891154
First version of this patch had a bug with checkbox limits.
Version 2 fixes it.
Version 2 also adds a call to vsetuserquota() after
vauth_setpw() to ensure (starting with vpopmail-5.4.0-pre2)
that the user's maildirsize gets updated after (possibly)
changing a quota.
Logged In: YES
user_id=1065725
I think that this patch must have an option to use the
trivial .qmailadmin-limits too.
Maybe the use of the vpopmail code help you to call generic
functions, and let vpopmail choose if it will create the data in
a .qmailadmin-limits files, or to the limits table in mysql.