#include <aliasdb.h>
alias_ent *alias_getbyname(char *name);
void alias_setent(void)
alias_ent *alias_getent(void);
void alias_endent(void);
aliasent *alias; alias_setent(); while (alias = alias_getent()) { handle(alias); } alias_endent();
The structure returned by alias_getbyname and alias_getent is defined as follows:
typedef struct aliasent { char *alias_name; unsigned alias_members_len; char **alias_members; int alias_local; } aliasent;
alias_name the name of the mail alias. alias_members_len is the number of members of this alias. alias_members is an array of strings containing the names of each of the members. alias_local indicates whether or not this is a local alias.
Currently, these routines only retrieve information from NetInfo and cannot locate alias entries in /etc/sendmail/aliases or Yellow Pages, even though sendmail(8) may be able to find them.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97