Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / bounce.h
blobae32d1edcfe746428cb57738a9135fa947df9c6e
1 /* $NetBSD$ */
3 #ifndef _BOUNCE_H_INCLUDED_
4 #define _BOUNCE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* bounce 3h
9 /* SUMMARY
10 /* bounce service client
11 /* SYNOPSIS
12 /* #include <bounce.h>
13 /* DESCRIPTION
14 /* .nf
17 * System library.
19 #include <time.h>
22 * Global library.
24 #include <deliver_request.h>
25 #include <dsn_buf.h>
28 * Client interface.
30 extern int bounce_append(int, const char *, MSG_STATS *, RECIPIENT *,
31 const char *, DSN *);
32 extern int bounce_flush(int, const char *, const char *, const char *,
33 const char *, const char *, int);
34 extern int bounce_flush_verp(int, const char *, const char *, const char *,
35 const char *, const char *, int, const char *);
36 extern int bounce_one(int, const char *, const char *, const char *,
37 const char *, const char *,
38 int, MSG_STATS *, RECIPIENT *,
39 const char *, DSN *);
42 * Bounce/defer protocol commands.
44 #define BOUNCE_CMD_APPEND 0 /* append log */
45 #define BOUNCE_CMD_FLUSH 1 /* send log */
46 #define BOUNCE_CMD_WARN 2 /* send warning, don't delete log */
47 #define BOUNCE_CMD_VERP 3 /* send log, verp style */
48 #define BOUNCE_CMD_ONE 4 /* send one recipient notice */
49 #define BOUNCE_CMD_TRACE 5 /* send delivery record */
52 * Macros to make obscure code more readable.
54 #define NO_DSN_DCODE ((char *) 0)
55 #define NO_RELAY_AGENT "none"
56 #define NO_DSN_RMTA ((char *) 0)
59 * Flags.
61 #define BOUNCE_FLAG_NONE 0 /* no flags up */
62 #define BOUNCE_FLAG_CLEAN (1<<0) /* remove log on error */
63 #define BOUNCE_FLAG_DELRCPT (1<<1) /* delete recipient from queue file */
66 * Backwards compatibility.
68 #define BOUNCE_FLAG_KEEP BOUNCE_FLAG_NONE
70 /* LICENSE
71 /* .ad
72 /* .fi
73 /* The Secure Mailer license must be distributed with this software.
74 /* AUTHOR(S)
75 /* Wietse Venema
76 /* IBM T.J. Watson Research
77 /* P.O. Box 704
78 /* Yorktown Heights, NY 10598, USA
79 /*--*/
81 #endif