/*++ /* NAME /* smtp_reply_footer 3 /* SUMMARY /* SMTP reply footer text support /* SYNOPSIS /* #include <smtp_reply_footer.h> /* /* int smtp_reply_footer(buffer, start, template, filter, /* lookup, context) /* VSTRING *buffer; /* ssize_t start; /* const char *template; /* const char *filter; /* const char *(*lookup) (const char *name, void *context); /* void *context; /* DESCRIPTION /* smtp_reply_footer() expands a reply template, and appends /* the result to an existing reply text. /* /* Arguments: /* .IP buffer /* Result buffer. This should contain a properly formatted /* one-line or multi-line SMTP reply, with or without the final /* <CR><LF>. The reply code and optional enhanced status code /* will be replicated in the footer text. One space character /* after the SMTP reply code is replaced by '-'. If the existing /* reply ends in <CR><LF>, the result text will also end in /* <CR><LF>. /* .IP start /* The beginning of the SMTP reply that the footer will be /* appended to. This supports applications that buffer up /* multiple responses in one buffer. /* .IP template /* Template text, with optional $name attributes that will be /* expanded. The two-character sequence "\n" is replaced by a /* line break followed by a copy of the original SMTP reply /* code and optional enhanced status code. /* The two-character sequence "\c" at the start of the template /* suppresses the line break between the reply text and the /* template text. /* .IP filter /* The set of characters that are allowed in attribute expansion. /* .IP lookup /* Attribute name/value lookup function. The result value must /* be a null for a name that is not found, otherwise a pointer /* to null-terminated string. /* .IP context /* Call-back context for the lookup function. /* SEE ALSO /* mac_expand(3) macro expansion /* DIAGNOSTICS /* smtp_reply_footer() returns 0 upon success, -1 if the existing /* reply text is malformed, -2 in the case of a template macro /* parsing error (an undefined macro value is not an error). /* /* Fatal errors: memory allocation problem. /* 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.