Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / rcpt_buf.h
blob08c3374c04895bba8eacbd8445c920613c2fef6f
1 /* $NetBSD$ */
3 #ifndef _RCPT_BUF_H_INCLUDED_
4 #define _RCPT_BUF_H_INCLUDED_
6 /*++
7 /* NAME
8 /* rcpt_buf 3h
9 /* SUMMARY
10 /* recipient buffer manager
11 /* SYNOPSIS
12 /* #include <rcpt_buf.h>
13 /* DESCRIPTION
14 /* .nf
17 * Utility library.
19 #include <vstream.h>
20 #include <vstring.h>
21 #include <attr.h>
24 * Global library.
26 #include <recipient_list.h>
29 * External interface.
31 typedef struct {
32 RECIPIENT rcpt; /* convenience */
33 VSTRING *address; /* final recipient */
34 VSTRING *orig_addr; /* original recipient */
35 VSTRING *dsn_orcpt; /* dsn original recipient */
36 int dsn_notify; /* DSN notify flags */
37 long offset; /* REC_TYPE_RCPT byte */
38 } RCPT_BUF;
40 extern RCPT_BUF *rcpb_create(void);
41 extern void rcpb_reset(RCPT_BUF *);
42 extern void rcpb_free(RCPT_BUF *);
43 extern int rcpb_scan(ATTR_SCAN_MASTER_FN, VSTREAM *, int, void *);
45 #define RECIPIENT_FROM_RCPT_BUF(buf) \
46 ((buf)->rcpt.address = vstring_str((buf)->address), \
47 (buf)->rcpt.orig_addr = vstring_str((buf)->orig_addr), \
48 (buf)->rcpt.dsn_orcpt = vstring_str((buf)->dsn_orcpt), \
49 (buf)->rcpt.dsn_notify = (buf)->dsn_notify, \
50 (buf)->rcpt.offset = (buf)->offset, \
51 &(buf)->rcpt)
53 /* LICENSE
54 /* .ad
55 /* .fi
56 /* The Secure Mailer license must be distributed with this software.
57 /* AUTHOR(S)
58 /* Wietse Venema
59 /* IBM T.J. Watson Research
60 /* P.O. Box 704
61 /* Yorktown Heights, NY 10598, USA
62 /*--*/
64 #endif