Home | History | Annotate | Line # | Download | only in global
      1 /*	$NetBSD: flush_clnt.h,v 1.1.1.1 2009/06/23 10:08:46 tron Exp $	*/
      2 
      3 #ifndef _FLUSH_CLNT_H_INCLUDED_
      4 #define _FLUSH_CLNT_H_INCLUDED_
      5 
      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
     15 
     16  /*
     17   * External interface.
     18   */
     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);
     25 
     26  /*
     27   * Mail flush server requests.
     28   */
     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 */
     34 
     35  /*
     36   * Mail flush server status codes.
     37   */
     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 */
     42 
     43 
     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 /*--*/
     54 
     55 #endif
     56