1 /* $NetBSD: smtpd_chat.h,v 1.3 2020/03/18 19:05:20 christos Exp $ */ 2 3 /*++ 4 /* NAME 5 /* smtpd_chat 3h 6 /* SUMMARY 7 /* SMTP server request/response support 8 /* SYNOPSIS 9 /* #include <smtpd.h> 10 /* #include <smtpd_chat.h> 11 /* DESCRIPTION 12 /* .nf 13 14 /* 15 * Global library. 16 */ 17 #include <mail_params.h> 18 19 /* 20 * External interface. 21 */ 22 extern void smtpd_chat_pre_jail_init(void); 23 extern void smtpd_chat_reset(SMTPD_STATE *); 24 extern int smtpd_chat_query_limit(SMTPD_STATE *, int); 25 extern void smtpd_chat_query(SMTPD_STATE *); 26 extern void PRINTFLIKE(2, 3) smtpd_chat_reply(SMTPD_STATE *, const char *,...); 27 extern void vsmtpd_chat_reply(SMTPD_STATE *, const char *, va_list); 28 extern void smtpd_chat_notify(SMTPD_STATE *); 29 30 #define smtpd_chat_query(state) \ 31 ((void) smtpd_chat_query_limit((state), var_line_limit)) 32 33 /* LICENSE 34 /* .ad 35 /* .fi 36 /* The Secure Mailer license must be distributed with this software. 37 /* AUTHOR(S) 38 /* Wietse Venema 39 /* IBM T.J. Watson Research 40 /* P.O. Box 704 41 /* Yorktown Heights, NY 10598, USA 42 /* 43 /* Wietse Venema 44 /* Google, Inc. 45 /* 111 8th Avenue 46 /* New York, NY 10011, USA 47 /*--*/ 48