1/*	$NetBSD$	*/
2
3#ifndef _HEADER_OPTS_H_INCLUDED_
4#define _HEADER_OPTS_H_INCLUDED_
5
6/*++
7/* NAME
8/*	header_opts 3h
9/* SUMMARY
10/*	message header classification
11/* SYNOPSIS
12/*	#include <header_opts.h>
13/* DESCRIPTION
14/* .nf
15
16 /* External interface. */
17
18typedef struct {
19    const char *name;			/* name, preferred capitalization */
20    int     type;			/* type, see below */
21    int     flags;			/* flags, see below */
22} HEADER_OPTS;
23
24 /*
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.
27  */
28#define HDR_APPARENTLY_TO		1
29#define HDR_BCC				2
30#define HDR_CC				3
31#define HDR_CONTENT_LENGTH		4
32#define HDR_CONTENT_TRANSFER_ENCODING	5
33#define HDR_CONTENT_TYPE		6
34#define HDR_DATE			7
35#define HDR_DELIVERED_TO		8
36#define HDR_ERRORS_TO			9
37#define HDR_FROM			10
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
51#define HDR_SENDER			24
52#define HDR_TO				25
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
59
60 /*
61  * Header flags.
62  */
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 */
69
70#define HDR_OPT_XRECIP	(HDR_OPT_RECIP | HDR_OPT_EXTRACT)
71
72extern const HEADER_OPTS *header_opts_find(const char *);
73
74/* LICENSE
75/* .ad
76/* .fi
77/*	The Secure Mailer license must be distributed with this software.
78/* AUTHOR(S)
79/*	Wietse Venema
80/*	IBM T.J. Watson Research
81/*	P.O. Box 704
82/*	Yorktown Heights, NY 10598, USA
83/*--*/
84
85#endif
86