1 /******************************************************************************* 2 * The Elm Mail System - $Revision: 1.2 $ $State: Exp $ 3 * 4 * Copyright (c) 1988-1995 USENET Community Trust 5 * Copyright (c) 1986,1987 Dave Taylor 6 ******************************************************************************* 7 * Bug reports, patches, comments, suggestions should be sent to: 8 * 9 * Bill Pemberton, Elm Coordinator 10 * flash@virginia.edu 11 * 12 ****************************************************************************** 13 * $Log: mime.h,v $ 14 * Revision 1.2 1995/09/29 17:40:51 wfp5p 15 * Alpha 8 (Chip's big changes) 16 * 17 * Revision 1.1.1.1 1995/04/19 20:38:30 wfp5p 18 * Initial import of elm 2.4 PL0 as base for elm 2.5. 19 * 20 ******************************************************************************/ 21 22 #if defined(MIME_SEND) || defined (MIME_RECV) /*{*/ 23 24 #define MIME_HDR_MIMEVERSION "MIME-Version" 25 #define MIME_VERSION_10 "1.0" 26 #define MIME_VERSION_OLD "RFCXXXX" 27 #define MIME_HDR_CONTENTTYPE "Content-Type" 28 #define MIME_HDR_CONTENTENCOD "Content-Transfer-Encoding" 29 30 /* Encoding types */ 31 32 #define ENCODING_ILLEGAL -1 33 #define ENCODING_NONE 0 34 #define ENCODING_7BIT 1 35 #define ENCODING_8BIT 2 36 #define ENCODING_BINARY 3 37 #define ENCODING_QUOTED 4 38 #define ENCODING_BASE64 5 39 #define ENCODING_UUENCODE 6 40 #define ENCODING_EXPERIMENTAL 7 41 42 #define ENC_NAME_7BIT "7bit" 43 #define ENC_NAME_8BIT "8bit" 44 #define ENC_NAME_BINARY "binary" 45 #define ENC_NAME_QUOTED "quoted-printable" 46 #define ENC_NAME_BASE64 "base64" 47 #define ENC_NAME_UUENCODE "x-uuencode" 48 49 /* default charsets, which are a superset of US-ASCII, so we did not 50 have to go out to metamail for us-ascii */ 51 52 #define COMPAT_CHARSETS "ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-7 ISO-8859-8 ISO-8859-9" 53 54 #endif /*} defined(MIME_SEND) || defined (MIME_RECV) */ 55 56 57 #if defined(MIME_SEND) || defined(MIME_RECV) 58 int mime_encoding_type P_((const char *)); 59 #endif 60 61 #ifdef MIME_RECV 62 int needs_mmdecode P_((char *)); 63 int notplain P_((char *)); 64 int charset_ok P_((char *)); 65 #endif 66 67