#ifndef _RCPT_BUF_H_INCLUDED_
#define _RCPT_BUF_H_INCLUDED_
#include <vstream.h>
#include <vstring.h>
#include <attr.h>
#include <recipient_list.h>
typedef struct {
RECIPIENT rcpt;
VSTRING *address;
VSTRING *orig_addr;
VSTRING *dsn_orcpt;
int dsn_notify;
long offset;
} RCPT_BUF;
extern RCPT_BUF *rcpb_create(void);
extern void rcpb_reset(RCPT_BUF *);
extern void rcpb_free(RCPT_BUF *);
extern int rcpb_scan(ATTR_SCAN_MASTER_FN, VSTREAM *, int, void *);
#define RECIPIENT_FROM_RCPT_BUF(buf) \
((buf)->rcpt.address = vstring_str((buf)->address), \
(buf)->rcpt.orig_addr = vstring_str((buf)->orig_addr), \
(buf)->rcpt.dsn_orcpt = vstring_str((buf)->dsn_orcpt), \
(buf)->rcpt.dsn_notify = (buf)->dsn_notify, \
(buf)->rcpt.offset = (buf)->offset, \
&(buf)->rcpt)
#endif