3 #ifndef _RCPT_BUF_H_INCLUDED_
4 #define _RCPT_BUF_H_INCLUDED_
10 /* recipient buffer manager
12 /* #include <rcpt_buf.h>
26 #include <recipient_list.h>
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 */
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, \
56 /* The Secure Mailer license must be distributed with this software.
59 /* IBM T.J. Watson Research
61 /* Yorktown Heights, NY 10598, USA