1 #ifndef _BOUNCE_LOG_H_INCLUDED_
2 #define _BOUNCE_LOG_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /*	bounce_log 3h
7 /* SUMMARY
8 /*	bounce file reader
9 /* SYNOPSIS
10 /*	#include <bounce_log.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15   * Utility library.
16   */
17 #include <vstream.h>
18 #include <vstring.h>
19 
20  /*
21   * Global library.
22   */
23 #include <recipient_list.h>
24 #include <rcpt_buf.h>
25 #include <dsn_buf.h>
26 
27  /*
28   * External interface.
29   */
30 typedef struct {
31     VSTREAM *fp;			/* open file */
32     VSTRING *buf;			/* I/O buffer */
33     char    *compat_status;		/* old logfile compatibility */
34     char    *compat_action;		/* old logfile compatibility */
35 } BOUNCE_LOG;
36 
37 extern BOUNCE_LOG *bounce_log_open(const char *, const char *, int, mode_t);
38 extern BOUNCE_LOG *bounce_log_read(BOUNCE_LOG *, RCPT_BUF *, DSN_BUF *);
39 extern BOUNCE_LOG *bounce_log_delrcpt(BOUNCE_LOG *);
40 extern int bounce_log_close(BOUNCE_LOG *);
41 
42 #define bounce_log_rewind(bp) vstream_fseek((bp)->fp, 0L, SEEK_SET)
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