3 #ifndef _HEADER_OPTS_H_INCLUDED_
4 #define _HEADER_OPTS_H_INCLUDED_
10 /* message header classification
12 /* #include <header_opts.h>
16 /* External interface. */
19 const char *name
; /* name, preferred capitalization */
20 int type
; /* type, see below */
21 int flags
; /* flags, see below */
25 * Header types. If we reach 31, we must group the headers we need to
26 * remember at the beginning, or we should use fd_set bit sets.
28 #define HDR_APPARENTLY_TO 1
31 #define HDR_CONTENT_LENGTH 4
32 #define HDR_CONTENT_TRANSFER_ENCODING 5
33 #define HDR_CONTENT_TYPE 6
35 #define HDR_DELIVERED_TO 8
36 #define HDR_ERRORS_TO 9
38 #define HDR_MESSAGE_ID 11
39 #define HDR_RECEIVED 12
40 #define HDR_REPLY_TO 13
41 #define HDR_RESENT_BCC 14
42 #define HDR_RESENT_CC 15
43 #define HDR_RESENT_DATE 16
44 #define HDR_RESENT_FROM 17
45 #define HDR_RESENT_MESSAGE_ID 18
46 #define HDR_RESENT_REPLY_TO 19
47 #define HDR_RESENT_SENDER 20
48 #define HDR_RESENT_TO 21
49 #define HDR_RETURN_PATH 22
50 #define HDR_RETURN_RECEIPT_TO 23
53 #define HDR_MAIL_FOLLOWUP_TO 26
54 #define HDR_CONTENT_DESCRIPTION 27
55 #define HDR_CONTENT_DISPOSITION 28
56 #define HDR_CONTENT_ID 29
57 #define HDR_MIME_VERSION 30
58 #define HDR_DISP_NOTIFICATION 31
63 #define HDR_OPT_DROP (1<<0) /* delete from input */
64 #define HDR_OPT_SENDER (1<<1) /* sender address */
65 #define HDR_OPT_RECIP (1<<2) /* recipient address */
66 #define HDR_OPT_RR (1<<3) /* Resent- header */
67 #define HDR_OPT_EXTRACT (1<<4) /* extract flag */
68 #define HDR_OPT_MIME (1<<5) /* MIME header */
70 #define HDR_OPT_XRECIP (HDR_OPT_RECIP | HDR_OPT_EXTRACT)
72 extern const HEADER_OPTS
*header_opts_find(const char *);
77 /* The Secure Mailer license must be distributed with this software.
80 /* IBM T.J. Watson Research
82 /* Yorktown Heights, NY 10598, USA