libEtPan! API
Prev |  | Next

# Chapter 4. MIME

libEtPan! implements a MIME message parser (also known as messages with attachments or multipart messages). This also allows to generate MIME messages.

Warning
All allocation functions will take as argument allocated data and will store these data in the structure they will allocate. Data should be persistant during all the use of the structure and will be freed by the free function of the structure allocation functions will return NULL on failure functions returning integer will be returning one of the following error code: MAILIMF_NO_ERROR, MAILIMF_ERROR_PARSE, MAILIMF_ERROR_MEMORY, MAILIMF_ERROR_INVAL, or MAILIMF_ERROR_FILE.

# Quick start

You will need this module when you want to parse a MIME message.

## Parse MIME message

You will use the following function :

- mailmime_parse (the Section called mailimf_envelope_and_optional_fields_parse in Chapter 3)

## Render the MIME message

Build your MIME message, then use mailmime_write (the Section called mailmime_write) to render a MIME message.

Prev | Home | Next
Rendering of messages |  | Data types