~ubuntu-branches/ubuntu/hoary/postfix/hoary-security

« back to all changes in this revision

Viewing changes to src/global/flush_clnt.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-10-06 11:50:33 UTC
  • Revision ID: james.westby@ubuntu.com-20041006115033-ooo6yfg6kmoteu04
Tags: upstream-2.1.3
ImportĀ upstreamĀ versionĀ 2.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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(const char *);
 
20
extern int flush_refresh(void);
 
21
extern int flush_purge(void);
 
22
 
 
23
 /*
 
24
  * Mail flush server requests.
 
25
  */
 
26
#define FLUSH_REQ_ADD           "add"   /* append queue ID to site log */
 
27
#define FLUSH_REQ_SEND          "send"  /* flush mail queued for site */
 
28
#define FLUSH_REQ_REFRESH       "rfrsh" /* refresh old logfiles */
 
29
#define FLUSH_REQ_PURGE         "purge" /* refresh all logfiles */
 
30
 
 
31
 /*
 
32
  * Mail flush server status codes.
 
33
  */
 
34
#define FLUSH_STAT_FAIL         -1      /* request failed */
 
35
#define FLUSH_STAT_OK           0       /* request executed */
 
36
#define FLUSH_STAT_BAD          3       /* invalid parameter */
 
37
#define FLUSH_STAT_DENY         4       /* request denied */
 
38
 
 
39
 
 
40
/* LICENSE
 
41
/* .ad
 
42
/* .fi
 
43
/*      The Secure Mailer license must be distributed with this software.
 
44
/* AUTHOR(S)
 
45
/*      Wietse Venema
 
46
/*      IBM T.J. Watson Research
 
47
/*      P.O. Box 704
 
48
/*      Yorktown Heights, NY 10598, USA
 
49
/*--*/
 
50
 
 
51
#endif