1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#ifndef _BOUNCE_H_INCLUDED_
#define _BOUNCE_H_INCLUDED_
/*++
/* NAME
/* bounce 3h
/* SUMMARY
/* bounce service client
/* SYNOPSIS
/* #include <bounce.h>
/* DESCRIPTION
/* .nf
/*
* System library.
*/
#include <time.h>
#include <stdarg.h>
/*
* Client interface.
*/
extern int bounce_append(int, const char *, const char *, const char *,
time_t, const char *,...);
extern int vbounce_append(int, const char *, const char *, const char *,
time_t, const char *, va_list);
extern int bounce_flush(int, const char *, const char *, const char *);
/*
* Bounce/defer protocol commands.
*/
#define BOUNCE_CMD_APPEND 0 /* append log */
#define BOUNCE_CMD_FLUSH 1 /* send log */
#define BOUNCE_CMD_WARN 2 /* send warning bounce, don't delete log */
/*
* Flags.
*/
#define BOUNCE_FLAG_NONE 0 /* no flags up */
#define BOUNCE_FLAG_CLEAN (1<<0) /* remove log on error */
#define BOUNCE_FLAG_COPY (1<<1) /* postmaster notice */
#define BOUNCE_FLAG_VERP (1<<2) /* personalized bounce */
/*
* Backwards compatibility.
*/
#define BOUNCE_FLAG_KEEP BOUNCE_FLAG_NONE
/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* IBM T.J. Watson Research
/* P.O. Box 704
/* Yorktown Heights, NY 10598, USA
/*--*/
#endif
|