Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / bounce_log.h
blobc12175fbfdad716936aaa37d5bcd10a7d9273632
1 /* $NetBSD$ */
3 #ifndef _BOUNCE_LOG_H_INCLUDED_
4 #define _BOUNCE_LOG_H_INCLUDED_
6 /*++
7 /* NAME
8 /* bounce_log 3h
9 /* SUMMARY
10 /* bounce file reader
11 /* SYNOPSIS
12 /* #include <bounce_log.h>
13 /* DESCRIPTION
14 /* .nf
17 * Utility library.
19 #include <vstream.h>
20 #include <vstring.h>
23 * Global library.
25 #include <recipient_list.h>
26 #include <rcpt_buf.h>
27 #include <dsn_buf.h>
30 * External interface.
32 typedef struct {
33 VSTREAM *fp; /* open file */
34 VSTRING *buf; /* I/O buffer */
35 char *compat_status; /* old logfile compatibility */
36 char *compat_action; /* old logfile compatibility */
37 } BOUNCE_LOG;
39 extern BOUNCE_LOG *bounce_log_open(const char *, const char *, int, mode_t);
40 extern BOUNCE_LOG *bounce_log_read(BOUNCE_LOG *, RCPT_BUF *, DSN_BUF *);
41 extern BOUNCE_LOG *bounce_log_delrcpt(BOUNCE_LOG *);
42 extern int bounce_log_close(BOUNCE_LOG *);
44 #define bounce_log_rewind(bp) vstream_fseek((bp)->fp, 0L, SEEK_SET)
46 /* LICENSE
47 /* .ad
48 /* .fi
49 /* The Secure Mailer license must be distributed with this software.
50 /* AUTHOR(S)
51 /* Wietse Venema
52 /* IBM T.J. Watson Research
53 /* P.O. Box 704
54 /* Yorktown Heights, NY 10598, USA
55 /*--*/
57 #endif