10 extern void decodeHDR();
11 extern void concatHDR();
12 extern int unfoldHDR();
15 extern unsigned int author_name(char **,char *,unsigned int);
17 extern unsigned int author_name();
24 /* iso-2022-jp back-to-ascii seq */
25 #define TOASCII "\x1B(B"
26 /* to JP. Last char [B|@] must be added */
29 /* iso-2022 SI sequence as string */
32 #define SI_LF_SO "\x0F\n\x0E"
34 /* in these bit 0 determines the number of bytes (1 or 2) in ss2/ss3 codes */
35 /* it is 2 for CN,1 for JP, and they are not used for KR bit 3 for */
37 #define CS_2022_MASK 0x08
38 #define CS_2022_JP 0x08
39 #define CS_2022_KR 0xA0
43 #define CS_2022_CN 0x09
44 /* Other Chinese ones. bit 7 set means MSB of 2-byte seq. No ss2/ss3 consid*/
48 #define MIME_APPLICATION_OCTETSTREAM 1
49 #define MIME_MULTI 0x80
50 #define MIME_MULTI_ALTERNATIVE 0x81
51 #define MIME_MULTI_MIXED 0x82
52 #define MIME_MULTI_DIGEST 0x83
53 #define MIME_MULTI_SIGNED 0x84
55 #define MIME_TEXT 0x40
56 #define MIME_TEXT_PLAIN 0x41
57 #define MIME_TEXT_HTML 0x42
58 #define MIME_TEXT_ENRICHED 0x43
59 #define MIME_TEXT_VCARD 0x44
61 #define MIME_MESSAGE 0x20
62 #define MIME_MESSAGE_RFC822 0x21
66 #define CTENC_BASE64 2
68 /* this is a linked list of mime type info. */
71 unsigned int mimetype
;
73 unsigned int cs
; /* charset flag - expand later */