/*++ /* NAME /* recipient_list 3 /* SUMMARY /* in-core recipient structures /* SYNOPSIS /* #include <recipient_list.h> /* /* typedef struct { /* .in +4 /* long offset; /* char *dsn_orcpt; /* int dsn_notify; /* char *orig_addr; /* char *address; /* union { /* .in +4 /* int status; /* struct QMGR_QUEUE *queue; /* char *addr_type; /* .in -4 /* } /* .in -4 /* } RECIPIENT; /* /* typedef struct { /* .in +4 /* RECIPIENT *info; /* private members... /* .in -4 /* } RECIPIENT_LIST; /* /* void recipient_list_init(list, variant) /* RECIPIENT_LIST *list; /* int variant; /* /* void recipient_list_add(list, offset, dsn_orcpt, dsn_notify, /* orig_rcpt, recipient) /* RECIPIENT_LIST *list; /* long offset; /* const char *dsn_orcpt; /* int dsn_notify; /* const char *orig_rcpt; /* const char *recipient; /* /* void recipient_list_swap(a, b) /* RECIPIENT_LIST *a; /* RECIPIENT_LIST *b; /* /* void recipient_list_free(list) /* RECIPIENT_LIST *list; /* /* void RECIPIENT_ASSIGN(rcpt, offset, dsn_orcpt, dsn_notify, /* orig_rcpt, recipient) /* RECIPIENT *rcpt; /* long offset; /* char *dsn_orcpt; /* int dsn_notify; /* char *orig_rcpt; /* char *recipient; /* DESCRIPTION /* This module maintains lists of recipient structures. Each /* recipient is characterized by a destination address and /* by the queue file offset of its delivery status record. /* The per-recipient status is initialized to zero, and exists /* solely for the convenience of the application. It is not used /* by the recipient_list module itself. /* /* recipient_list_init() creates an empty recipient structure list. /* The list argument is initialized such that it can be given to /* recipient_list_add() and to recipient_list_free(). The variant /* argument specifies how list elements should be initialized; /* specify RCPT_LIST_INIT_STATUS to zero the status field, and /* RCPT_LIST_INIT_QUEUE to zero the queue field. /* /* recipient_list_add() adds a recipient to the specified list. /* Recipient address information is copied with mystrdup(). /* /* recipient_list_swap() swaps the recipients between /* the given two recipient lists. /* /* recipient_list_free() releases memory for the specified list /* of recipient structures. /* /* RECIPIENT_ASSIGN() assigns the fields of a recipient structure /* without making copies of its arguments. /* /* Arguments: /* .IP list /* Recipient list initialized by recipient_list_init(). /* .IP offset /* Queue file offset of a recipient delivery status record. /* .IP dsn_orcpt /* DSN original recipient. /* .IP notify /* DSN notify flags. /* .IP recipient /* Recipient destination address. /* SEE ALSO /* recipient_list(3h) data structure /* DIAGNOSTICS /* Fatal errors: memory allocation. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.