ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
mime.h File Reference
#include "stralloc.h"
Include dependency graph for mime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mime_info

Macros

#define ESC   0x1B
#define SI   0x0F
#define SO   0x0E
#define TOASCII   "\x1B(B"
#define TOJP   "\x1B$"
#define TOSI   "\x0F"
#define SI_LF_SO   "\x0F\n\x0E"
#define CS_2022_MASK   0x08
#define CS_2022_JP   0x08
#define CS_2022_KR   0xA0
#define CS_NONE   0
#define CS_BAD   0xffff
#define CS_2022_CN   0x09
#define CS_CN   0x10
#define MIME_NONE   0
#define MIME_APPLICATION_OCTETSTREAM   1
#define MIME_MULTI   0x80
#define MIME_MULTI_ALTERNATIVE   0x81
#define MIME_MULTI_MIXED   0x82
#define MIME_MULTI_DIGEST   0x83
#define MIME_MULTI_SIGNED   0x84
#define MIME_TEXT   0x40
#define MIME_TEXT_PLAIN   0x41
#define MIME_TEXT_HTML   0x42
#define MIME_TEXT_ENRICHED   0x43
#define MIME_TEXT_VCARD   0x44
#define MIME_MESSAGE   0x20
#define MIME_MESSAGE_RFC822   0x21
#define CTENC_NONE   0
#define CTENC_QP   1
#define CTENC_BASE64   2

Functions

void decode_qp (const char *, unsigned int, stralloc *)
void decode_b64 (const char *, unsigned int, stralloc *)
void encode_qp (const char *, unsigned int, stralloc *)
void encode_b64 (const unsigned char *, unsigned int, stralloc *, int)
void decode_hdr (const char *, unsigned int, stralloc *)
void concat_hdr (char *, unsigned int, stralloc *)
int unfold_hdr (char *, unsigned long, stralloc *, const char *, stralloc *, int)
unsigned int author_name (char **, char *, unsigned int)

Macro Definition Documentation

◆ CS_2022_CN

#define CS_2022_CN   0x09

Definition at line 38 of file mime.h.

◆ CS_2022_JP

#define CS_2022_JP   0x08

Definition at line 33 of file mime.h.

◆ CS_2022_KR

#define CS_2022_KR   0xA0

Definition at line 34 of file mime.h.

◆ CS_2022_MASK

#define CS_2022_MASK   0x08

Definition at line 32 of file mime.h.

◆ CS_BAD

#define CS_BAD   0xffff

Definition at line 36 of file mime.h.

◆ CS_CN

#define CS_CN   0x10

Definition at line 40 of file mime.h.

◆ CS_NONE

#define CS_NONE   0

Definition at line 35 of file mime.h.

◆ CTENC_BASE64

#define CTENC_BASE64   2

Definition at line 61 of file mime.h.

◆ CTENC_NONE

#define CTENC_NONE   0

Definition at line 59 of file mime.h.

◆ CTENC_QP

#define CTENC_QP   1

Definition at line 60 of file mime.h.

◆ ESC

#define ESC   0x1B

Definition at line 17 of file mime.h.

◆ MIME_APPLICATION_OCTETSTREAM

#define MIME_APPLICATION_OCTETSTREAM   1

Definition at line 43 of file mime.h.

◆ MIME_MESSAGE

#define MIME_MESSAGE   0x20

Definition at line 56 of file mime.h.

◆ MIME_MESSAGE_RFC822

#define MIME_MESSAGE_RFC822   0x21

Definition at line 57 of file mime.h.

◆ MIME_MULTI

#define MIME_MULTI   0x80

Definition at line 44 of file mime.h.

◆ MIME_MULTI_ALTERNATIVE

#define MIME_MULTI_ALTERNATIVE   0x81

Definition at line 45 of file mime.h.

◆ MIME_MULTI_DIGEST

#define MIME_MULTI_DIGEST   0x83

Definition at line 47 of file mime.h.

◆ MIME_MULTI_MIXED

#define MIME_MULTI_MIXED   0x82

Definition at line 46 of file mime.h.

◆ MIME_MULTI_SIGNED

#define MIME_MULTI_SIGNED   0x84

Definition at line 48 of file mime.h.

◆ MIME_NONE

#define MIME_NONE   0

Definition at line 42 of file mime.h.

◆ MIME_TEXT

#define MIME_TEXT   0x40

Definition at line 50 of file mime.h.

◆ MIME_TEXT_ENRICHED

#define MIME_TEXT_ENRICHED   0x43

Definition at line 53 of file mime.h.

◆ MIME_TEXT_HTML

#define MIME_TEXT_HTML   0x42

Definition at line 52 of file mime.h.

◆ MIME_TEXT_PLAIN

#define MIME_TEXT_PLAIN   0x41

Definition at line 51 of file mime.h.

◆ MIME_TEXT_VCARD

#define MIME_TEXT_VCARD   0x44

Definition at line 54 of file mime.h.

◆ SI

#define SI   0x0F

Definition at line 18 of file mime.h.

◆ SI_LF_SO

#define SI_LF_SO   "\x0F\n\x0E"

Definition at line 28 of file mime.h.

◆ SO

#define SO   0x0E

Definition at line 19 of file mime.h.

◆ TOASCII

#define TOASCII   "\x1B(B"

Definition at line 21 of file mime.h.

◆ TOJP

#define TOJP   "\x1B$"

Definition at line 23 of file mime.h.

◆ TOSI

#define TOSI   "\x0F"

Definition at line 26 of file mime.h.

Function Documentation

◆ author_name()

unsigned int author_name ( char ** sout,
char * s,
unsigned int l )
extern

Definition at line 19 of file author.c.

Here is the caller graph for this function:

◆ concat_hdr()

void concat_hdr ( char * indata,
unsigned int n,
stralloc * outdata )
extern

Definition at line 25 of file concat_hdr.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_b64()

void decode_b64 ( const char * cpfrom,
unsigned int n,
stralloc * outdata )
extern

Definition at line 33 of file decode_b64.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_hdr()

void decode_hdr ( const char * indata,
unsigned int n,
stralloc * outdata )
extern

Definition at line 24 of file decode_hdr.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_qp()

void decode_qp ( const char * cpfrom,
unsigned int n,
stralloc * outdata )
extern

Definition at line 35 of file decode_qp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ encode_b64()

void encode_b64 ( const unsigned char * indata,
unsigned int n,
stralloc * outdata,
int control )
extern

Definition at line 75 of file encode_b64.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ encode_qp()

void encode_qp ( const char * indata,
unsigned int n,
stralloc * outdata )
extern

Definition at line 21 of file encode_qp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unfold_hdr()

int unfold_hdr ( char * indata,
unsigned long n,
stralloc * outdata,
const char * charset,
stralloc * prefix,
int flagtrimsub )
extern

Definition at line 160 of file unfold_hdr.c.

Here is the call graph for this function:
Here is the caller graph for this function: