On Tuesday, October 22, 2002, at 02:37  PM, Brian Kolaci wrote:

The layout should have been in vmysql.h.  I must have tested
the wrong directory when I thought I tested 5.3.9.  I see
its missing.

This should be appended to vmysql.h:


#ifdef ENABLE_MYSQL_LIMITS
#define LIMITS_TABLE_LAYOUT "domain CHAR(64) PRIMARY KEY, \
      maxpopaccounts          INT(10) NOT NULL DEFAULT -1, \
      maxaliases              INT(10) NOT NULL DEFAULT -1, \
      maxforwards             INT(10) NOT NULL DEFAULT -1, \
      maxautoresponders       INT(10) NOT NULL DEFAULT -1, \
      maxmailinglists         INT(10) NOT NULL DEFAULT -1, \
      diskquota               INT(12) NOT NULL DEFAULT 0, \
      defaultquota            INT(12) NOT NULL DEFAULT 0, \
      disablepop              TINYINT(1) NOT NULL DEFAULT 0, \
      disableimap             TINYINT(1) NOT NULL DEFAULT 0, \
      disabledialup           TINYINT(1) NOT NULL DEFAULT 0, \
      disablepasswordchanging TINYINT(1) NOT NULL DEFAULT 0, \
      disablewebmail          TINYINT(1) NOT NULL DEFAULT 0, \
      disablerelay            TINYINT(1) NOT NULL DEFAULT 0"
#endif

There's also a potential problem reading the ascii file
and interpreting the "k" or "m" symbols for quotas.  Bill said
he'd like it to use the format_maildirquota() function, however
I've updated my copy to parse out the symbols and multiply by 1024
or 1024*1024, but I'm not sure if this is the vpopmail standard.

Bill:

Shall I put a patch for these two items ?
I must have sent you the incorrect patch file (I had two, one with
the vmysql.h changes and one without).

Thanks,

I've added the above definition to vmysql.h. format_maildirquota() also accounts for message counts, i.e. Maildir++ style quotas, which is why I want to use it rather than just converting the number. Can you supply me a patch of what you did, and I'll work from there?

Regards,

Bill


Reply via email to