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