Mike Miller wrote:
> 
> show_counts()
> {
>         count_users();

This function actually calls:
struct passwd *vauth_getall(char *domain, int first, int sortit)
first = 1 to start a new one, first = 0 for all subsequent calls
keep calling it while it returns non NULL.

    CurPopAccounts = 0;
    pw = vauth_getall(Domain,1,0);
     while(pw!=NULL){
        ++CurPopAccounts;
        pw = vauth_getall(Domain,0,0);
    }

printf("%d\n", CurPopAccounts);


>         count_aliases();
>         count_forwards();
>         count_autoresponders();
>         count_mailinglists();
> 
>         fprintf(actout, "Pop accounts   = %d<BR>\n", CurPopAccounts);
>         fprintf(actout, "Aliases        = %d<BR>\n", CurAliases);
>         fprintf(actout, "Forwards       = %d<BR>\n", CurForwards);
>         fprintf(actout, "Autoresponders = %d<BR>\n", CurAutoResponders);
>         fprintf(actout, "Mailing lists  = %d<BR>\n", CurMailingLists);
> 
> }
> 
> Clearly the function is there- I'm going to port the functions I need from
> qmailadmin and implement it into a C program linked with libvpopmail (I'd
> assume it'll be required) - prolly need to be SUID vpopmail but with some
> error checking on accepting the one input, I don't see it being too much of
> a problem.
> 
> --
> Mike
> _____________________________________________________________________________________
> Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

Reply via email to