Hello,

Ken, below is the missing documentation for the rest of new API calls.
the rest is described in the patch's docs.

Now, can we start working on it somehow? Like discussing the current state 
and pointing it's weakneses etc?

Kris
-----------------------

There are three new functions in vmysql.c file
1) vauth_addfunction(char * domain, char * user, int mode, char * argument)
2) vauth_delfunction(char * domain, char * user, int mode, char * argument)
3) vauth_delfunction_all(char * domain, char * user)

Ad 1) vauth_addfunction

By means of that function you can add new entry to functions_table
domain  -       virtual domain handled by mil server
user    -       username in considered domain
mode    -       one of defined bit flag (       0x01 - alias,
                                        0x02 - forward
                                        0x04 -  program to be run on mail arrival
                this flag may be ORed with 0x80 - PASS_TROUGH
argument-       format of this argument function depends on which mode has been
selected

Ad 2) vauth_delfunction
deletes single matching entry from functions_table

Ad 3) vauth_addfunction_all
deletes all entries from functions_table for user 'user' in domain 'domain' 

Reply via email to