/*++ /* NAME /* local_expand 3 /* SUMMARY /* set up attribute list for $name expansion /* SYNOPSIS /* #include "local.h" /* /* int local_expand(result, pattern, state, usr_attr, filter) /* VSTRING *result; /* const char *pattern; /* LOCAL_STATE state; /* USER_ATTR usr_attr; /* const char *filter; /* DESCRIPTION /* local_expand() performs conditional and unconditional $name /* expansion based on message delivery attributes. /* The result is the bitwise OR or zero or more of the following: /* .IP LOCAL_EXP_EXTENSION_MATCHED /* The result of expansion contains the $extension attribute. /* .IP MAC_PARSE_XXX /* See mac_parse(3). /* .PP /* Attributes: /* .IP client_address /* The client network address. /* .IP client_helo /* The client HELO command parameter. /* .IP client_hostname /* The client hostname. /* .IP client_protocol /* The client protocol. /* .IP domain /* The recipient address domain. /* .IP extension /* The recipient address extension. /* .IP home /* The recipient home directory. /* .IP local /* The entire recipient address localpart. /* .IP recipient /* The entire recipient address. /* .IP recipient_delimiter /* The recipient delimiter. /* .IP shell /* The recipient shell program. /* .IP sasl_method /* The SASL authentication method. /* .IP sasl_sender /* The SASL MAIL FROM address. /* .IP sasl_username /* The SASL login name. /* .IP user /* The recipient user name. /* .PP /* Arguments: /* .IP result /* Storage for the result of expansion. The buffer is truncated /* upon entry. /* .IP pattern /* The string with unconditional and conditional macro expansions. /* .IP state /* Message delivery attributes (sender, recipient etc.). /* Attributes describing alias, include or forward expansion. /* A table with the results from expanding aliases or lists. /* A table with delivered-to: addresses taken from the message. /* .IP usr_attr /* Attributes describing user rights and environment. /* .IP filter /* A null pointer, or a string of allowed characters in $name /* expansions. Illegal characters are replaced by underscores. /* DIAGNOSTICS /* Fatal errors: out of memory. /* SEE ALSO /* mac_expand(3) macro expansion /* 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
/*--*/
/* System library. */
#include <sys_defs.h> #include <string.h>
/* Utility library. */
#include <vstring.h> #include <mac_expand.h>
/* Global library */
#include <mail_params.h>
/* Application-specific. */
#include"local.h"
typedefstruct {
LOCAL_STATE *state;
USER_ATTR *usr_attr; int status;
} LOCAL_EXP;
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.