1 /* $NetBSD: header_opts.h,v 1.2 2017/02/14 01:16:45 christos Exp $ */ 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 18 typedef 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_OTHER 0 29 #define HDR_APPARENTLY_TO 1 30 #define HDR_BCC 2 31 #define HDR_CC 3 32 #define HDR_CONTENT_LENGTH 4 33 #define HDR_CONTENT_TRANSFER_ENCODING 5 34 #define HDR_CONTENT_TYPE 6 35 #define HDR_DATE 7 36 #define HDR_DELIVERED_TO 8 37 #define HDR_ERRORS_TO 9 38 #define HDR_FROM 10 39 #define HDR_MESSAGE_ID 11 40 #define HDR_RECEIVED 12 41 #define HDR_REPLY_TO 13 42 #define HDR_RESENT_BCC 14 43 #define HDR_RESENT_CC 15 44 #define HDR_RESENT_DATE 16 45 #define HDR_RESENT_FROM 17 46 #define HDR_RESENT_MESSAGE_ID 18 47 #define HDR_RESENT_REPLY_TO 19 48 #define HDR_RESENT_SENDER 20 49 #define HDR_RESENT_TO 21 50 #define HDR_RETURN_PATH 22 51 #define HDR_RETURN_RECEIPT_TO 23 52 #define HDR_SENDER 24 53 #define HDR_TO 25 54 #define HDR_MAIL_FOLLOWUP_TO 26 55 #define HDR_CONTENT_DESCRIPTION 27 56 #define HDR_CONTENT_DISPOSITION 28 57 #define HDR_CONTENT_ID 29 58 #define HDR_MIME_VERSION 30 59 #define HDR_DISP_NOTIFICATION 31 60 61 /* 62 * Header flags. 63 */ 64 #define HDR_OPT_DROP (1<<0) /* delete from input */ 65 #define HDR_OPT_SENDER (1<<1) /* sender address */ 66 #define HDR_OPT_RECIP (1<<2) /* recipient address */ 67 #define HDR_OPT_RR (1<<3) /* Resent- header */ 68 #define HDR_OPT_EXTRACT (1<<4) /* extract flag */ 69 #define HDR_OPT_MIME (1<<5) /* MIME header */ 70 71 #define HDR_OPT_XRECIP (HDR_OPT_RECIP | HDR_OPT_EXTRACT) 72 73 extern const HEADER_OPTS *header_opts_find(const char *); 74 75 /* LICENSE 76 /* .ad 77 /* .fi 78 /* The Secure Mailer license must be distributed with this software. 79 /* AUTHOR(S) 80 /* Wietse Venema 81 /* IBM T.J. Watson Research 82 /* P.O. Box 704 83 /* Yorktown Heights, NY 10598, USA 84 /*--*/ 85 86 #endif 87