Excellent! I've been wanting to add this functionality to vpopmail
for a long time. Nice work, clean api.

I'll try to get them added to the next devel release.

Ken Jones

On Thursday 17 October 2002 01:19 pm, Brian Kolaci wrote:
> Hi,
>
> I mentioned this awhile back, but didn't have the
> cycles to create a diff file.  I finally had the time
> so here it is...  I've been using this in version 5.2
> and even back in 4.9.6.
>
> I've attached a diff file to add the functions
>
> int vget_limits( char *domain, struct vlimits *limits )
> int vset_limits( char *domain, struct vlimits *limits )
> int vdel_limits( char *domain )
>
> to the vpopmail library.  These maintain either the
> raw file .qmailadmin-limits or will maintain the limits
> in a MySQL database.  The items supported are:
>
> struct vlimits {
>       int       maxpopaccounts;
>       int       maxaliases;
>       int       maxforwards;
>       int       maxautoresponders;
>       int       maxmailinglists;
>       int       diskquota;
>       int       defaultquota;
>       short     disablepop;
>       short     disableimap;
>       short     disabledialup;
>       short     disablepasswordchanging;
>       short     disablewebmail;
>       short     disablerelay;
> };
>
> I haven't included the changes to qmailadmin that I use,
> nor the changes to vdelivermail (for domain quota).
>
> diskquota is the current quota for a domain.
> defaultquota is the default quota for new users of this domain.
>
> The other items I believe are self explanatory.
>
> The config is updated so you would call --enable-mysql-limits as
> an option to configure.
>
> Hopefully you'll find this useful.
>
> Thanks,
>
> Brian


Reply via email to