1/* $NetBSD$ */ 2 3#ifndef _BOUNCE_LOG_H_INCLUDED_ 4#define _BOUNCE_LOG_H_INCLUDED_ 5 6/*++ 7/* NAME 8/* bounce_log 3h 9/* SUMMARY 10/* bounce file reader 11/* SYNOPSIS 12/* #include <bounce_log.h> 13/* DESCRIPTION 14/* .nf 15 16 /* 17 * Utility library. 18 */ 19#include <vstream.h> 20#include <vstring.h> 21 22 /* 23 * Global library. 24 */ 25#include <recipient_list.h> 26#include <rcpt_buf.h> 27#include <dsn_buf.h> 28 29 /* 30 * External interface. 31 */ 32typedef 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; 38 39extern BOUNCE_LOG *bounce_log_open(const char *, const char *, int, mode_t); 40extern BOUNCE_LOG *bounce_log_read(BOUNCE_LOG *, RCPT_BUF *, DSN_BUF *); 41extern BOUNCE_LOG *bounce_log_delrcpt(BOUNCE_LOG *); 42extern int bounce_log_close(BOUNCE_LOG *); 43 44#define bounce_log_rewind(bp) vstream_fseek((bp)->fp, 0L, SEEK_SET) 45 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/*--*/ 56 57#endif 58