/*++ /* NAME /* postscreen_tests 3 /* SUMMARY /* postscreen tests timestamp/flag bulk support /* SYNOPSIS /* #include <postscreen.h> /* /* void PSC_INIT_TESTS(state) /* PSC_STATE *state; /* /* void psc_new_tests(state) /* PSC_STATE *state; /* /* void psc_parse_tests(state, stamp_text, time_value) /* PSC_STATE *state; /* const char *stamp_text; /* time_t time_value; /* /* void psc_todo_tests(state, time_value) /* PSC_STATE *state; /* const char *stamp_text; /* time_t time_value; /* /* char *psc_print_tests(buffer, state) /* VSTRING *buffer; /* PSC_STATE *state; /* /* char *psc_print_grey_key(buffer, client, helo, sender, rcpt) /* VSTRING *buffer; /* const char *client; /* const char *helo; /* const char *sender; /* const char *rcpt; /* /* const char *psc_test_name(tindx) /* int tindx; /* DESCRIPTION /* The functions in this module overwrite the per-test expiration /* time stamps and all flags bits. Some functions are implemented /* as unsafe macros, meaning they evaluate one or more arguments /* multiple times. /* /* PSC_INIT_TESTS() is an unsafe macro that sets the per-test /* expiration time stamps to PSC_TIME_STAMP_INVALID, and that /* zeroes all the flags bits. These values are not meant to /* be stored into the postscreen(8) cache. /* /* PSC_INIT_TEST_FLAGS_ONLY() zeroes all the flag bits. It /* should be used when the time stamps are already initialized. /* /* psc_new_tests() sets all test expiration time stamps to /* PSC_TIME_STAMP_NEW, and invokes psc_todo_tests(). /* /* psc_parse_tests() parses a cache file record and invokes /* psc_todo_tests(). /* /* psc_todo_tests() overwrites all per-session flag bits, and /* populates the flags based on test expiration time stamp /* information. Tests are considered "expired" when they /* would be expired at the specified time value. Only enabled /* tests are flagged as "expired"; the object is flagged as /* "new" if some enabled tests have "new" time stamps. /* /* psc_print_tests() creates a cache file record for the /* specified flags and per-test expiration time stamps. /* This may modify the time stamps for disabled tests. /* /* psc_print_grey_key() prints a greylist lookup key. /* /* psc_test_name() returns the name for the specified text /* index. /* 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 /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, 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.