Menu

#1 dir_control fix, vlimits, pretty quotas

open
nobody
None
5
2003-12-12
2003-12-12
Casey Zacek
No

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.

Discussion

  • Casey Zacek

    Casey Zacek - 2003-12-13

    patch (ver 2) to vqadmin-2.3.6

     
  • Casey Zacek

    Casey Zacek - 2003-12-13

    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.

     
  • Marcelo Coelho

    Marcelo Coelho - 2004-06-17

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.