1 #ifndef _FLUSH_CLNT_H_INCLUDED_ 2 #define _FLUSH_CLNT_H_INCLUDED_ 3 4 /*++ 5 /* NAME 6 /* flush_clnt 3h 7 /* SUMMARY 8 /* flush backed up mail 9 /* SYNOPSIS 10 /* #include <flush_clnt.h> 11 /* DESCRIPTION 12 /* .nf 13 14 /* 15 * External interface. 16 */ 17 extern void flush_init(void); 18 extern int flush_add(const char *, const char *); 19 extern int flush_send_site(const char *); 20 extern int flush_send_file(const char *); 21 extern int flush_refresh(void); 22 extern int flush_purge(void); 23 24 /* 25 * Mail flush server requests. 26 */ 27 #define FLUSH_REQ_ADD "add" /* append queue ID to site log */ 28 #define FLUSH_REQ_SEND_SITE "send_site" /* flush mail for site */ 29 #define FLUSH_REQ_SEND_FILE "send_file" /* flush one queue file */ 30 #define FLUSH_REQ_REFRESH "rfrsh" /* refresh old logfiles */ 31 #define FLUSH_REQ_PURGE "purge" /* refresh all logfiles */ 32 33 /* 34 * Mail flush server status codes. 35 */ 36 #define FLUSH_STAT_FAIL -1 /* request failed */ 37 #define FLUSH_STAT_OK 0 /* request executed */ 38 #define FLUSH_STAT_BAD 3 /* invalid parameter */ 39 #define FLUSH_STAT_DENY 4 /* request denied */ 40 41 42 /* LICENSE 43 /* .ad 44 /* .fi 45 /* The Secure Mailer license must be distributed with this software. 46 /* AUTHOR(S) 47 /* Wietse Venema 48 /* IBM T.J. Watson Research 49 /* P.O. Box 704 50 /* Yorktown Heights, NY 10598, USA 51 /*--*/ 52 53 #endif 54