|
MIMETYPE.H
|
Functions to manage emsMIMEtype structures
- make_mime_type
- Creates an emsMIMEtype structure to hold MIME information.
Only the type and subtype are set here, use add_mime_parameter() to add
any name/value parameter pairs.
parse_make_mime_type
- Create an emsMIMEtype structure to hold MIME information.
Structure is initialized to values provided in RFC822 content-type header
line. This includes all parameter name-value pairs.
add_mime_parameter
- Add a parameter to an existing emsMIMEtype structure.
remove_mime_parameter
- Remove a parameter from an existing emsMIMEtype structure.
free_mime_type
- Free an emsMIMEtype structure, including all strings
and parameters.
string_mime_type
- Convert an emsMIMEtype structure to a Content-Type
header field line in the format specified by RFC 882.
get_mime_parameter
- Pick out a specific parameter name-value pair from
an emsMIMEtype structure. The match is case sensitive.
match_mime_type
- Check for a matching MIME type/subtype.
|
|
ENCODING.H
|
Functions to encode and decode using BASE64 or Quoted-Printable
- Encode64
- Convert binary data to base64
Decode64
- Convert base64 data to binary
EncodeQP
- Convert binary data to quoted-printable
DecodeQP
- Convert quoted-printable data to binary
rfc822_parse_cte
- Parse Content-Transer-Encoding header line
rfc822_make_cte
- Create Content-Transer-Encoding header line
rfc822_extract_cte
- Finds and extracts the content transfer encoding header
line from a full multi-lined header. All unfolding (removing newlines)
is done before header line is returned.
|
|
RFC822.H
|
Functions to aide manipulation of MIME RFC822 headers
- rfc822_extract_token
- Find next RFC822 token in given string, copying it
into a newly created string. Advance pointer past token and any following
whitespace.
rfc822_skipws
- Advances to next non-whitespace character in string.
This includes ignoring RFC822 comments.
rfc822_skipword
- Advances to next character in string directly after
the current token. The first character must be the beginning of a valid
token or end of string (ie. all whitespace must be skipped BEFORE calling
this function).
rfc822_quoted_strlen
- Calculates the length of the given text string if
it were converted to an RFC822 string.
rfc822_quote_strcpy
- Copies and converts the source text string to a destination
RFC822 string.
rfc822_unquote_strcpy
- Copies and converts the source RFC822 string to a
destination text string.
rfc822_extract_header
- Finds and extracts a header line from a full multi-lined
header. All unfolding (removing newlines) is done before header line is
returned.
rfc822_read_header
- Reads and returns the RFC822 header from input file.
This is defined here as reading until the first blank line from current
file position. The blank line is discarded.
|
|
FILE1847.H
|
Functions to create and parse RFC1847 MIME structured files
- CreateTmpFile
- Creates a empty, unique, temporary file in the users
'TEMP' directory.
rfc1847_file_create
- Creates RFC1847 MIME structure from two existing files.
Optionally adds transfer encoding.
rfc1847_file_parse
- Parses RFC1847 MIME structure into two existing files.
Optionally removes transfer encoding.
|
|
RFC1847.H
|
Functions to create and parse RFC1847 MIME using memory-based
buffers
- new_create_state
- Allocates and returns a pointer to an initialized
createState structure. This structure is used by rfc1847_create().
delete_create_state
- Frees all memory within the state structure, including
the structure itself.
new_parse_state
- Allocates and returns a pointer to an initialized
parseState structure. This structure is used by rfc1847_parse().
delete_parse_state
- Frees all memory within the state structure, including
the structure itself.
rfc1847_create
- Creates RFC1847 MIME structure using two input buffers
and a single output buffer.
rfc1847_parse
- Parses RFC1847 MIME structure from a single buffer,
returning MIME info and separated parts into buffers.
|
|
BUFTYPE.H
|
Functions for manipulating the buffers used in RFC1847.CPP
|