libEtPan! API
Viet Hoa DINH
Copyright © 2003 DINH Viet Hoa
Table of Contents
1.
Introduction
2.
Tools and datatypes
Array
carray_new and carray_free
carray_set_size
carray_count, carray_add, carray_get and carray_set
carray_delete
carray_data
List
clist_new and clist_free
clist_isempty and clist_count
running through clist
clist modification
clist_foreach
clist_concat
Hash table
chash_new and chash_free
chash_set and chash_get
chash_delete
chash_resize
running through the chash
chash_size and chash_count
Buffered I/O
non-buffered I/O
strings
constructor and destructor
string value modification
insertion in string, deletion in string
referencing string
3.
Internet Message Format
Data types
mailimf_mailbox
mailimf_address
mailimf_mailbox_list creation and display
mailimf_address_list
mailimf_group
mailimf_date_time
mailimf_orig_date
mailimf_from
mailimf_sender
mailimf_reply_to
mailimf_to
mailimf_cc
mailimf_bcc
mailimf_message_id
mailimf_in_reply_to
mailimf_references
mailimf_subject
mailimf_comments
mailimf_keywords
mailimf_return
mailimf_path
mailimf_optional_field
mailimf_field
mailimf_fields
mailimf_body
mailimf_message
mailimf_single_fields
Parser functions
mailimf_address_list_parse
mailimf_address_parse
mailimf_body_parse
mailimf_envelope_and_optional_fields_parse
mailimf_envelope_fields_parse
mailimf_optional_fields_parse
mailimf_fields_parse
mailimf_ignore_field_parse
mailimf_mailbox_list_parse
mailimf_mailbox_parse
mailimf_message_parse
Creation functions
mailimf_mailbox_list
mailimf_address_list_new_empty
mailimf_fields
Rendering of messages
Header fields
List of Examples
2-1.
carray creation
2-2.
preallocating carray
2-3.
carray access
2-4.
deletion in carray
2-5.
clist creation
2-6.
displaying content of clist
2-7.
deleting elements in a clist
2-8.
merging two clists
2-9.
chash insert and lookup
2-10.
key deletion in a chash
2-11.
running through a chash
3-1.
example of mailbox
3-2.
mailbox creation and display
3-3.
address creation and display
3-4.
Creation and display of mailimf_mailbox_list
3-5.
creation and display of list of addresses
3-6.
example of group
3-7.
creation and display of a group
3-8.
example of date
3-9.
creation and display of date
3-10.
creation and display of Date field
3-11.
creation and display of a From header
3-12.
creation and display of Sender field
3-13.
creation and display of Reply-To field
3-14.
creation and display of To field
3-15.
creation and display of Cc field
3-16.
creation and display of Bcc field
3-17.
example of Message-ID
3-18.
creation and display of Message-ID field
3-19.
creation and display of In-Reply-To field
3-20.
creation and display of References field
3-21.
creation and display of Subject field
3-22.
creation and display of Comment field
3-23.
creation and display of Keywords field
3-24.
creation and display of Return-Path field
3-25.
Creation and display of return path
3-26.
creation and display of non-standard fields
3-27.
creation and display of field
3-28.
creation and display of header fields
3-29.
creation and display of message body
3-30.
creation and display of message
3-31.
using mailimf_single_fields
3-32.
using mailimf_single_fields without memory allocation
3-33.
parsing a list of addresses
3-34.
parsing an address
3-35.
parsing a message body
3-36.
parsing commonly used fields and return other fields in a non-parsed form
3-37.
parsing commonly used fields
3-38.
parsing optional fields
3-39.
parsing header fields
3-40.
skipping fields
3-41.
parsing a list of mailboxes
3-42.
parsing a mailbox
3-43.
parsing a message
3-44.
creating a list of mailboxes
3-45.
creation of header fields
3-46.
rendering of fields
Next
Introduction