/*++ /* NAME /* match_service 3 /* SUMMARY /* simple master.cf service name.type pattern matcher /* SYNOPSIS /* #include <match_service.h> /* /* ARGV *match_service_init(pattern_list) /* const char *pattern_list; /* /* ARGV *match_service_init_argv(pattern_list) /* char **pattern_list; /* /* int match_service_match(list, name_type) /* ARGV *list; /* const char *name_type; /* /* void match_service_free(list) /* ARGV *list; /* DESCRIPTION /* This module implements pattern matching for Postfix master.cf /* services. This is more precise than using domain_list(3), /* because match_service(3) won't treat a dotted service name /* as a domain hierarchy. Moreover, this module has the advantage /* that it does not drag in all the LDAP, SQL and other map /* lookup client code into programs that don't need it. /* /* Each pattern is of the form "name/type" or "type", where /* "name" and "type" are the first two fields of a master.cf /* entry. Patterns are separated by whitespace and/or commas. /* Matches are case insensitive. Patterns are matched in the /* specified order, and the matching process stops at the first /* match. In order to reverse the result of a pattern match, /* precede a pattern with an exclamation point (!). /* /* For backwards compatibility, the form name.type is still /* supported. /* /* match_service_init() parses the pattern list. The result /* must be passed to match_service_match() or match_service_free(). /* /* match_service_init_argv() provides an alternate interface /* for pre-parsed strings. /* /* match_service_match() matches one service name.type string /* against the specified pattern list. /* /* match_service_free() releases storage allocated by /* match_service_init(). /* DIAGNOSTICS /* Fatal error: out of memory, malformed pattern. /* Panic: malformed search string. /* SEE ALSO /* domain_list(3) match domain names. /* 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.