7 ** Copyright 2001 Double Precision, Inc.
8 ** See COPYING for distribution information.
13 #include "rfc822/config.h"
15 #include <sys/types.h>
32 #define rfc822hdr_init(h,s) \
33 do { memset((h), 0, sizeof(*h)); (h)->maxsize=(s); } while(0)
35 #define rfc822hdr_free(h) \
36 do { if ((h)->header) free ((h)->header); } while (0)
38 int rfc822hdr_read(struct rfc822hdr
*, FILE *, off_t
*, off_t
);
39 void rfc822hdr_fixname(struct rfc822hdr
*);
40 void rfc822hdr_collapse(struct rfc822hdr
*);
42 int rfc822hdr_namecmp(const char *a
, const char *b
);
43 int rfc822hdr_is_addr(const char *hdr
);