1 /* $NetBSD: header_opts.h,v 1.4 2026/05/09 18:49:16 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. 26 */ 27 #define HDR_OTHER 0 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 #define HDR_TLS_REQUIRED 32 /* RFC 8689 */ 60 #define HDR_REQTLS_ESMTP 33 /* non-standard */ 61 62 /* 63 * Header flags. 64 */ 65 #define HDR_OPT_DROP (1<<0) /* delete from input */ 66 #define HDR_OPT_SENDER (1<<1) /* sender address */ 67 #define HDR_OPT_RECIP (1<<2) /* recipient address */ 68 #define HDR_OPT_RR (1<<3) /* Resent- header */ 69 #define HDR_OPT_EXTRACT (1<<4) /* extract flag */ 70 #define HDR_OPT_MIME (1<<5) /* MIME header */ 71 72 #define HDR_OPT_XRECIP (HDR_OPT_RECIP | HDR_OPT_EXTRACT) 73 74 extern const HEADER_OPTS *header_opts_find(const char *); 75 76 /* LICENSE 77 /* .ad 78 /* .fi 79 /* The Secure Mailer license must be distributed with this software. 80 /* AUTHOR(S) 81 /* Wietse Venema 82 /* IBM T.J. Watson Research 83 /* P.O. Box 704 84 /* Yorktown Heights, NY 10598, USA 85 /* 86 /* Wietse Venema 87 /* porcupine.org 88 /*--*/ 89 90 #endif 91