Files
seta75D d6fe8fe829 Init
2021-10-11 22:19:34 -03:00

668 lines
24 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* aix_sccsid[] = "src/bos/usr/lib/sendmail/sendmail.h, cmdsend, bos41J, 9510A_all AIX 2/16/95 18:17:08" */
/*
* COMPONENT_NAME: CMDSEND sendmail.h
*
* FUNCTIONS: ISSSI, _BITBIT, _BITWORD, bitnset, clrbitmap, clrbitn,
* newstr, setbitn, setstat, tTd, tTdlevel, UMODE, GMODE, OMODE
*
* ORIGINS: 10 26 27
*
* (C) COPYRIGHT International Business Machines Corp. 1985, 1989
* All Rights Reserved
* Licensed Materials - Property of IBM
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
** Sendmail
** Copyright (c) 1983 Eric P. Allman
** Berkeley, California
**
** Copyright (c) 1983 Regents of the University of California.
** All rights reserved. The Berkeley software License Agreement
** specifies the terms and conditions for redistribution.
**
** @(#)sendmail.h 5.8 (Berkeley) 1/10/86
**
*/
/*
** SENDMAIL.H -- Global definitions for sendmail.
*/
# ifdef _DEFINE
# define EXTERN
# else _DEFINE
# define EXTERN extern
# endif _DEFINE
# define PSBUFSIZE (MAXNAME + MAXATOM) /* size of prescan buffer */
/*
** Data structure for bit maps.
**
** Each bit in this map can be referenced by an ascii character.
** This is 128 possible bits, or 16 8-bit bytes.
*/
/* I have used aiws to identify RT code. Is there a better symbol? */
#ifndef aiws
ERROR %%% SENDMAIL.H: MACHINE DEPENDENT CONSTANTS %%% ERROR
#endif
/* machine dependent */
#define BITMAPINTS 4 /* number of ints in a bit map */
#define BITMAPBYTES 16 /* number of ints in a bit map */
#define BITSPERINTSHF 5 /* shift factor: int offset containing bit */
#define BITININTMASK 0x1f /* bit offset in int */
/* internal macros */
#define _BITWORD(bit) ((bit) >> BITSPERINTSHF)
#define _BITBIT(bit) (1 << ((bit) & BITININTMASK))
typedef int BITMAP[BITMAPINTS];
/* test bit number N */
#define bitnset(bit, map) ((map)[_BITWORD(bit)] & _BITBIT(bit))
/* set bit number N */
#define setbitn(bit, map) (map)[_BITWORD(bit)] |= _BITBIT(bit)
/* clear bit number N */
#define clrbitn(bit, map) (map)[_BITWORD(bit)] &= ~_BITBIT(bit)
/* clear an entire bit map */
#define clrbitmap(map) (void) memset((char *) map, 0, BITMAPBYTES)
/* select bits of mode by user, for xlating mode to acl params */
#define UMODE(mode) (((mode) & 0700) >> 6)
#define GMODE(mode) (((mode) & 070) >> 3)
#define OMODE(mode) ((mode) & 07)
/*
** Address structure.
** Addresses are stored internally in this structure.
*/
struct address
{
char *q_paddr; /* the printname for the address */
char *q_user; /* user name */
char *q_ruser; /* real user name, or NULL if q_user */
char *q_host; /* host name */
struct mailer *q_mailer; /* mailer to use */
unsigned short q_flags; /* status flags, see below */
uid_t q_uid; /* user-id of receiver (if known) */
gid_t q_gid; /* group-id of receiver (if known) */
char *q_home; /* home dir (local mailer only) */
char *q_fullname; /* full name if known */
struct address *q_next; /* chain */
struct address *q_alias; /* address this results from */
struct address *q_tchain; /* temporary use chain */
long q_timeout; /* timeout for this address */
short q_btype; /* body type to be sent out */
};
typedef struct address ADDRESS;
# define QDONTSEND 000001 /* don't send to this address */
# define QBADADDR 000002 /* this address is verified bad */
# define QGOODUID 000004 /* the q_uid q_gid fields are good */
# define QPRIMARY 000010 /* set from argv */
# define QQUEUEUP 000020 /* queue for later transmission */
#ifdef _SUN
# define QDOMAIN 000040 /* was result of NIS alias */
# define QWASLOCAL 000100 /* saw our host name, stop yellow paging */
#endif _SUN
/*
** Mailer definition structure.
** Every mailer known to the system is declared in this
** structure. It defines the pathname of the mailer, some
** flags associated with it, and the argument vector to
** pass to it. The flags are defined in conf.c
**
** The argument vector is expanded before actual use. All
** words except the first are passed through the macro
** processor.
*/
struct mailer
{
char *m_name; /* symbolic name of this mailer */
char *m_mailer; /* pathname of the mailer to use */
BITMAP m_flags; /* status flags, see below */
short m_mno; /* mailer number internally */
char **m_argv; /* template argument vector */
short m_s_rwset; /* rewriting set for sender addresses */
short m_r_rwset; /* rewriting set for recipient addresses */
char *m_eol; /* end of line string */
long m_maxsize; /* size limit on message to this mailer */
};
typedef struct mailer MAILER;
/* bits for m_flags */
# define M_CANONICAL 'C' /* make addresses canonical "u@dom" */
# define M_EXPENSIVE 'e' /* it costs to use this mailer.... */
# define M_ESCFROM 'E' /* escape From lines to >From */
# define M_FOPT 'f' /* mailer takes picky -f flag */
# define M_HST_UPPER 'h' /* preserve host case distinction */
# define M_INTERNAL 'I' /* SMTP to another sendmail site */
# define M_LOCAL 'l' /* delivery is to this host */
# define M_LIMITS 'L' /* must enforce SMTP line limits */
# define M_MUSER 'm' /* can handle multiple users at once */
# define M_NHDR 'n' /* don't insert From line */
# define M_LANG 'N' /* national language support */
# define M_FROMPATH 'p' /* use reverse-path in MAIL FROM: */
# define M_ROPT 'r' /* mailer takes picky -r flag */
# define M_SECURE_PORT 'R' /* try to send on a reserved TCP port */
# define M_STRIPQ 's' /* strip quote chars from user/host */
# define M_RESTR 'S' /* must be daemon to execute */
# define M_USR_UPPER 'u' /* preserve user case distinction */
# define M_UGLYUUCP 'U' /* this wants an ugly UUCP from line */
# define M_FORWARD 'w' /* local mailer forwarding to remote host */
# define M_XDOT 'X' /* use hidden-dot algorithm */
# define ALLOWED 21 /* only debug level allowed */
EXTERN MAILER *Mailer[MAXMAILERS+1];
EXTERN MAILER *LocalMailer; /* ptr to local mailer */
EXTERN MAILER *ProgMailer; /* ptr to program mailer */
/*
** Header structure.
** This structure is used internally to store header items.
*/
struct header
{
char *h_field; /* the name of the field */
char *h_value; /* the value of that field */
struct header *h_link; /* the next header */
unsigned short h_flags; /* status bits, see below */
BITMAP h_mflags; /* m_flags bits needed */
};
typedef struct header HDR;
/*
** Header information structure.
** Defined in conf.c, this struct declares the header fields
** that have some magic meaning.
*/
struct hdrinfo
{
char *hi_field; /* the name of the field */
unsigned short hi_flags; /* status bits, see below */
};
extern struct hdrinfo HdrInfo[];
/* bits for h_flags and hi_flags */
# define H_EOH 00001 /* this field terminates header */
# define H_RCPT 00002 /* contains recipient addresses */
# define H_DEFAULT 00004 /* if another value is found, drop this */
# define H_RESENT 00010 /* this address is a "Resent-..." address */
# define H_CHECK 00020 /* check h_mflags against m_flags */
# define H_ACHECK 00040 /* ditto, but always (not just default) */
# define H_FORCE 00100 /* force this field, even if default */
# define H_TRACE 00200 /* this field contains trace information */
# define H_FROM 00400 /* this is a from-type field */
# define H_VALID 01000 /* this field has a validated value */
# define H_ESC 02000 /* this body may be encoded via nlesc() */
# define H_SPACESUB 04000 /* field should be blank-subbed (for x.400) */
/*
** Envelope structure.
** This structure defines the message itself. There is usually
** only one of these -- for the message that we originally read
** and which is our primary interest -- but other envelopes can
** be generated during processing. For example, error messages
** will have their own envelope.
*/
struct envelope
{
HDR *e_header; /* head of header list */
long e_msgpriority; /* adjusted priority of this message */
long e_ctime; /* time message appeared in the queue */
char *e_to; /* the target person */
char *e_receiptto; /* return receipt address */
ADDRESS e_from; /* the person it is from */
char **e_fromdomain; /* the domain part of the sender */
ADDRESS *e_sendqueue; /* list of message recipients */
ADDRESS *e_errorqueue; /* the queue for error responses */
long e_msgsize; /* size of the message in bytes */
int e_nrcpts; /* number of recipients */
short e_class; /* msg class (priority, junk, etc.) */
short e_flags; /* flags, see below */
short e_hopcount; /* number of times processed */
int (*e_puthdr)(); /* function to put header of message */
int (*e_putbody)(); /* function to put body of message */
struct envelope *e_parent; /* the message this one encloses */
struct envelope *e_sibling; /* the next envelope of interest */
short e_btype; /* body type of message (e_df) */
char *e_df; /* location of temp file */
FILE *e_dfp; /* temporary file */
char *e_dfe; /* NLesc encoded temp file location */
FILE *e_dfep; /* NLesc encoded temp file */
char *e_dfn; /* NLS temp file location */
FILE *e_dfnp; /* NLS temp file */
char *e_dfi; /* ISO encoded temp file location */
FILE *e_dfip; /* ISO encoded temp file */
char *e_dff; /* flat ASCII temp file location */
FILE *e_dffp; /* flat ASCII temp file */
char *e_dfj; /* NetCode temp file location */
FILE *e_dfjp; /* NetCode temp file */
char *e_dfs; /* MailCode temp file location */
FILE *e_dfsp; /* MailCode temp file */
char *e_id; /* code for this entry in queue */
FILE *e_xfp; /* transcript file */
char *e_message; /* error message */
char *e_macro[128]; /* macro definitions */
};
typedef struct envelope ENVELOPE;
/* values for e_flags */
#define EF_OLDSTYLE 000001 /* use spaces (not commas) in hdrs */
#define EF_INQUEUE 000002 /* this message is fully queued */
#define EF_TIMEOUT 000004 /* this message is too old */
#define EF_CLRQUEUE 000010 /* disk copy is no longer needed */
#define EF_SENDRECEIPT 000020 /* send a return receipt */
#define EF_FATALERRS 000040 /* fatal errors occured */
#define EF_KEEPQUEUE 000100 /* keep queue files always */
#define EF_RESPONSE 000200 /* this is an error or return receipt */
#define EF_RESENT 000400 /* this message is being forwarded */
EXTERN ENVELOPE *CurEnv; /* envelope currently being processed */
/*
** Message priority classes.
**
** The message class is read directly from the Priority: header
** field in the message.
**
** CurEnv->e_msgpriority is the number of bytes in the message plus
** the creation time (so that jobs ``tend'' to be ordered correctly),
** adjusted by the message class, the number of recipients, and the
** amount of time the message has been sitting around. This number
** is used to order the queue. Higher values mean LOWER priority.
**
** Each priority class point is worth WkClassFact priority points;
** each recipient is worth WkRecipFact priority points. Each time
** we reprocess a message the priority is adjusted by WkTimeFact.
** WkTimeFact should normally decrease the priority so that jobs
** that have historically failed will be run later; thanks go to
** Jay Lepreau at Utah for pointing out the error in my thinking.
**
** The "class" is this number, unadjusted by the age or size of
** this message. Classes with negative representations will have
** error messages thrown away if they are not local.
*/
struct priority
{
char *pri_name; /* external name of priority */
int pri_val; /* internal value for same */
};
EXTERN struct priority Priorities[MAXPRIORITIES];
EXTERN int NumPriorities; /* pointer into Priorities */
/*
** Rewrite rules.
*/
struct rewrite
{
char **r_lhs; /* pattern match */
char **r_rhs; /* substitution value */
struct rewrite *r_next;/* next in chain */
};
EXTERN struct rewrite *RewriteRules[MAXRWSETS];
/*
** Special characters in rewriting rules.
** These are used internally only.
** The COND* rules are actually used in macros rather than in
** rewriting rules, but are given here because they
** cannot conflict.
*/
/* left hand side items */
# define MATCHZANY '\020' /* match zero or more tokens */
# define MATCHANY '\021' /* match one or more tokens */
# define MATCHONE '\022' /* match exactly one token */
# define MATCHCLASS '\023' /* match one token in a class */
# define MATCHNCLASS '\024' /* match anything not in class */
# define MATCHREPL '\025' /* replacement on RHS for above */
/* right hand side items */
# define CANONNET '\026' /* canonical net, next token */
# define CANONHOST '\027' /* canonical host, next token */
# define CANONUSER '\030' /* canonical user, next N tokens */
# define CALLSUBR '\031' /* call another rewriting set */
/* conditionals in macros */
# define CONDIF '\002' /* conditional if-then */
# define CONDELSE '\003' /* conditional else */
# define CONDFI '\004' /* conditional fi */
/* bracket characters for host name lookup */
# define HOSTBEGIN '\005' /* hostname lookup begin */
# define HOSTEND '\006' /* hostname lookup end */
/* \001 is also reserved as the macro expansion character */
/*
* Information about hosts that we have looked up recently.
*
* This stuff is 4.2/3bsd specific. (???)
*/
struct hostinfo
{
char *ho_name; /* name of this host */
struct in_addr ho_inaddr; /* internet address */
short ho_flags; /* flag bits, see below */
short ho_errno; /* error number on last connection */
short ho_exitstat; /* exit status from last connection */
};
/* flag bits */
#define HOF_VALID 00001 /* this entry is valid */
/*
** Symbol table definitions
*/
struct symtab
{
char *s_name; /* name to be entered */
char s_type; /* general type (see below) */
struct symtab *s_next; /* pointer to next in chain */
union
{
BITMAP sv_class; /* bit-map of word classes */
ADDRESS *sv_addr; /* pointer to address header */
MAILER *sv_mailer; /* pointer to mailer */
char *sv_alias; /* alias */
struct hostinfo sv_host; /* host information */
} s_value;
};
typedef struct symtab STAB;
/* symbol types */
# define ST_UNDEF 0 /* undefined type */
# define ST_CLASS 1 /* class map */
# define ST_ADDRESS 2 /* an address in parsed format */
# define ST_MAILER 3 /* a mailer header */
# define ST_ALIAS 4 /* an alias */
# define ST_HOST 5 /* host information */
# define s_class s_value.sv_class
# define s_address s_value.sv_addr
# define s_mailer s_value.sv_mailer
# define s_alias s_value.sv_alias
# define s_host s_value.sv_host
extern STAB *stab();
/* opcodes to stab */
# define ST_FIND 0 /* find entry */
# define ST_ENTER 1 /* enter if not there */
/*
** STRUCT EVENT -- event queue.
**
** Maintained in sorted order.
**
** We store the pid of the process that set this event to insure
** that when we fork we will not take events intended for the parent.
*/
struct event
{
long ev_time; /* time of the function call */
int (*ev_func)(int);/* function to call */
int ev_arg; /* argument to ev_func */
int ev_pid; /* pid that set this event */
struct event *ev_link; /* link to next item */
};
typedef struct event EVENT;
EXTERN EVENT *EventQueue; /* head of event queue */
/*
** Operation, send, and error modes
**
** The operation mode describes the basic operation of sendmail.
** This can be set from the command line, and is "send mail" by
** default.
**
** The send mode tells how to send mail. It can be set in the
** configuration file. It's setting determines how quickly the
** mail will be delivered versus the load on your system. If the
** -v (verbose) flag is given, it will be forced to SM_DELIVER
** mode.
**
** The error mode tells how to return errors.
*/
EXTERN char OpMode; /* operation mode, see below */
#define MD_DELIVER 'm' /* be a mail sender */
#define MD_ARPAFTP 'a' /* old-style arpanet protocols */
#define MD_SMTP 's' /* run SMTP on standard input */
#define MD_DAEMON 'd' /* run as a daemon */
#define MD_VERIFY 'v' /* verify: don't collect or deliver */
#define MD_TEST 't' /* test mode: resolve addrs only */
#define MD_INITALIAS 'i' /* initialize alias database */
#define MD_FREEZE 'z' /* initialize config database */
#define MD_PRINT 'p' /* print the queue */
#define MD_NLTEST 'r' /* test mode: find body type */
#define MD_NLFREEZE 'n' /* compile & freeze the .nl file */
#ifdef DEBUG
#define MD_WIZ 'w' /* encrypt new debug password */
#endif DEBUG
EXTERN char SendMode; /* send mode, see below */
#define SM_DELIVER 'i' /* interactive delivery */
#define SM_FORK 'b' /* deliver in background */
#define SM_QUEUE 'q' /* queue, don't deliver */
#define SM_VERIFY 'v' /* verify only (used internally) */
/* used only as a parameter to sendall */
#define SM_DEFAULT '\0' /* unspecified, use SendMode */
EXTERN char ErrorMode; /* error mode, see below */
#define EM_PRINT 'p' /* print errors */
#define EM_MAIL 'm' /* mail back errors */
#define EM_WRITE 'w' /* write back errors */
#define EM_BERKNET 'e' /* special berknet processing */
#define EM_QUIET 'q' /* don't print messages (stat only) */
/* offset used to issure that the error messages for name server error
* codes are unique.
*/
#define MAX_ERRNO 100
/*
* structure defined in readcf.c that defines supported nameserver
* resource records.
*/
struct resource_records {
char name[4]; /* text name of RR */
int value; /* defined in nameser.h, used as position in bitmap */
#define NS_ANY (127) /* should be T_ANY, but needs to fit in bitmap */
};
extern struct resource_records ResourceRecords[];
/*
* auditing events: must match the class definitions in
* /etc/security/audit/config and the format strings in
* /etc/security/audit/events
*/
#ifdef _CSECURITY
#ifdef _DEFINE
char ConfigEvent[] = "SENDMAIL_Config";
char FileEvent[] = "SENDMAIL_ToFile";
#else _DEFINE
extern char ConfigEvent[];
extern char FileEvent[];
#endif _DEFINE
#endif _CSECURITY
/*
** Global variables.
*/
EXTERN int FromFlag; /* if set, "From" person is explicit */
EXTERN int NoAlias; /* if set, don't do any aliasing */
EXTERN int ForceMail; /* if set, mail even if already got a copy */
EXTERN int MeToo; /* send to the sender also */
EXTERN int IgnrDot; /* don't let dot end messages */
EXTERN int SaveFrom; /* save leading "From" lines */
EXTERN int Verbose; /* set if blow-by-blow desired */
EXTERN int GrabTo; /* if set, get recipients from msg */
EXTERN int NoReturn; /* don't return letter to sender */
EXTERN int SuprErrs; /* set if we are suppressing errors */
EXTERN int QueueRun; /* currently running message from the queue */
EXTERN int HoldErrs; /* only output errors to transcript */
EXTERN int NoConnect; /* don't connect to non-local mailers */
EXTERN int SuperSafe; /* be extra careful, even if expensive */
EXTERN int ForkQueueRuns; /* fork for each job when running the queue */
EXTERN int UseNameServer; /* use internet domain name server */
EXTERN BITMAP NameServOpt; /* which resource records to query server for */
EXTERN int CheckAliases; /* parse addresses during newaliases */
EXTERN long TimeOut; /* time until timeout */
EXTERN FILE *InChannel; /* input connection */
EXTERN FILE *OutChannel; /* output connection */
EXTERN uid_t RealUid; /* when Daemon, real uid of caller */
EXTERN gid_t RealGid; /* when Daemon, real gid of caller */
EXTERN uid_t DefUid; /* default uid */
EXTERN gid_t DefGid; /* default gid */
EXTERN int OldUmask; /* umask when sendmail starts up */
EXTERN int Errors; /* set if errors (local to single pass) */
EXTERN int ExitStat; /* exit status code */
EXTERN int AliasLevel; /* depth of aliasing */
EXTERN int MotherPid; /* proc id of parent process */
EXTERN int LineNumber; /* line number in current input */
EXTERN long ReadTimeout; /* timeout on reads */
EXTERN int LogLevel; /* level of logging to perform */
EXTERN int FileMode; /* mode on files */
EXTERN int QueueLA; /* load average starting forced queueing */
EXTERN int RefuseLA; /* load average refusing connections are */
EXTERN int QueueFactor; /* slope of queue function */
EXTERN long QueueIntvl; /* intervals between running the queue */
EXTERN char *AliasFile; /* location of alias file */
EXTERN char *StatFile; /* location of statistics summary */
EXTERN char *QueueDir; /* location of queue directory */
EXTERN char *FileName; /* name to print on error messages */
EXTERN char *SmtpPhase; /* current phase in SMTP processing */
EXTERN char *MyHostName; /* name of this host for SMTP messages */
EXTERN char *RealHostName; /* name of host we are talking to */
EXTERN struct sockaddr_in RealHostAddr;/* address of host we are talking to */
EXTERN char *CurHostName; /* current host we are dealing with */
extern char Arpa_Info[]; /* the reply code for Arpanet info [conf.c] */
extern ADDRESS NullAddress; /* a null (template) address [main.c] */
EXTERN char SpaceSub; /* substitution for <lwsp> */
EXTERN int Ined; /* Ined editor in use*/
EXTERN int WkClassFact; /* multiplier for message class -> priority */
EXTERN int WkRecipFact; /* multiplier for # of recipients -> priority */
EXTERN int WkTimeFact; /* priority offset each time this job is run */
EXTERN int CheckPointLimit; /* deliveries before checkpointing */
EXTERN int Nmx; /* number of MX RRs */
EXTERN char *PostMasterCopy; /* address to get errs cc's */
EXTERN char *MxHosts[MAXMXHOSTS+1]; /* for MX RRs */
EXTERN char *TrustedUsers[MAXTRUST+1]; /* list of trusted users */
EXTERN char *UserEnviron[MAXUSERENVIRON+1]; /* saved user environment */
EXTERN char *NlFile; /* location of sendmail.nl file */
EXTERN char NlEsc; /* mail can be encoded going out */
EXTERN int IsoIn; /* flag for encoding of incomming ISO mail */
EXTERN int AltAddrLimit; /* alternative address limit for multihoming */
EXTERN char *DefUser; /* default user to run as (from DefUid) */
EXTERN long TransmitTimeout; /* timeout on write for smtp */
EXTERN long DataTimeout; /* timeout on read for smtp DATA */
EXTERN long PeriodTimeout; /* timeout on read for smtp '.' */
EXTERN long RcptTimeout; /* timeout on read for smtp RCPT */
EXTERN long GreetTimeout; /* timeout on read for smtp Greeting */
EXTERN long MailTimeout; /* timeout on read for smtp MAIL */
EXTERN int WriteErr; /* bool value if a write timeout occurred */
EXTERN char *AliasMap; /* alias map name for yellow pages */
EXTERN char *NetCode; /* NetCode for Kanji */
EXTERN char *MailCode; /* MailCode for Kanji */
EXTERN int Btype; /* global body type for envelope */
EXTERN int SecureSMTP; /* operate in secure SMTP mode */
EXTERN int LogSMTP; /* log SMTP user lookups */
#ifdef DEBUG
/*
** Trace information
*/
/* trace vector and macros for debugging flags */
EXTERN unsigned char tTdvect[100];
# define tTd(flag, level) (tTdvect[flag] >= level)
# define tTdlevel(flag) (tTdvect[flag])
#endif DEBUG
/*
** Some in-line functions
*/
/* set exit status */
#define setstat(s) { \
if (ExitStat == EX_OK || ExitStat == EX_TEMPFAIL) \
ExitStat = s; \
}
/* make a copy of a string */
#define newstr(s) (char *)strcpy(xalloc(strlen(s) + 1), s)
/*
* Message priority definitions for syslog program.
*/
#define LOG_EMERG 0 /* system is unusable */
#define LOG_ALERT 1 /* action must be taken immediately */
#define LOG_CRIT 2 /* critical conditions */
#define LOG_ERR 3 /* error conditions */
#define LOG_WARNING 4 /* warning conditions */
#define LOG_NOTICE 5 /* normal but signification condition */
#define LOG_INFO 6 /* informational */
#define LOG_DEBUG 7 /* debug-level messages */
#define LOG_MAX 7 /* max log priority */
/*
* Definitions for NL char handling.
*/
#define ISSSI(I) (I <= 0x1f && I >= 0x1c) /* test for shift chars */
/*
* Definitions for body type encoding
*/
#define BT_UNK 0 /* unknown body type */
#define BT_NLS 1 /* nls (with extended characters) */
#define BT_ESC 2 /* created with NLesc() */
#define BT_ISO 3 /* encoded with ISO-8859/1 chars */
#define BT_FLAT 4 /* flattened with NLflatchar() */
#define BT_NC 5 /* NetCode for Kanji */
#define BT_MC 6 /* MailCode for local Kanji AIX users */