GMimeHeaderList

GMimeHeaderList — Message and MIME part headers

Functions

const char * g_mime_header_id_to_name ()
GMimeHeaderId g_mime_header_id_from_name ()
char * (*GMimeHeaderRawValueFormatter) ()
char * g_mime_header_format_addrlist ()
char * g_mime_header_format_content_disposition ()
char * g_mime_header_format_content_type ()
char * g_mime_header_format_default ()
char * g_mime_header_format_disposition_notification_options ()
char * g_mime_header_format_dkim_signature ()
char * g_mime_header_format_mailing_list_command ()
char * g_mime_header_format_message_id ()
char * g_mime_header_format_received ()
char * g_mime_header_format_authentication_results ()
char * g_mime_header_format_references ()
GMimeHeader * g_mime_header_new ()
GMimeHeader * g_mime_header_new_full ()
GMimeHeader * g_mime_header_new_with_id ()
GMimeHeader * g_mime_header_new_with_id_full ()
GMimeHeader * g_mime_header_parse ()
GMimeHeader * g_mime_header_parse_text ()
GMimeHeader * g_mime_header_clone ()
char * g_mime_header_unfold ()
GMimeHeaderId g_mime_header_get_id ()
const char * g_mime_header_get_name ()
GBytes * g_mime_header_get_raw_name ()
gint64 g_mime_header_get_offset ()
const char * g_mime_header_get_value ()
char * g_mime_header_get_value_with_charset ()
void g_mime_header_set_value ()
gboolean g_mime_header_set_value_full ()
GBytes * g_mime_header_get_raw_value ()
gboolean g_mime_header_set_raw_value ()
ssize_t g_mime_header_write_to_stream ()
char * g_mime_header_to_string ()
GMimeHeaderList * g_mime_header_list_new ()
GMimeHeaderList * g_mime_header_list_new_with_capacity ()
GMimeHeaderList * g_mime_header_list_load ()
GMimeHeaderList * g_mime_header_list_load_file ()
int g_mime_header_list_get_count ()
void g_mime_header_list_clear ()
gboolean g_mime_header_list_contains ()
gboolean g_mime_header_list_contains_id ()
gboolean g_mime_header_list_contains_header ()
int g_mime_header_list_index_of ()
int g_mime_header_list_index_of_id ()
int g_mime_header_list_index_of_header ()
int g_mime_header_list_last_index_of ()
int g_mime_header_list_last_index_of_id ()
int g_mime_header_list_add ()
void g_mime_header_list_insert_header ()
void g_mime_header_list_insert ()
gboolean g_mime_header_list_insert_full ()
gboolean g_mime_header_list_insert_id_full ()
GMimeHeader * g_mime_header_list_get_header ()
GMimeHeader * g_mime_header_list_get_header_at ()
void g_mime_header_list_set_header_at ()
void g_mime_header_list_prepend ()
gboolean g_mime_header_list_prepend_full ()
void g_mime_header_list_append ()
gboolean g_mime_header_list_append_full ()
gboolean g_mime_header_list_append_id_full ()
void g_mime_header_list_set ()
const char * g_mime_header_list_get_value ()
const char * g_mime_header_list_get_value_by_id ()
gboolean g_mime_header_list_set_value_full ()
gboolean g_mime_header_list_set_value_by_id_full ()
void g_mime_header_list_replace ()
gboolean g_mime_header_list_replace_value_full ()
gboolean g_mime_header_list_replace_value_by_id_full ()
gboolean g_mime_header_list_remove ()
gboolean g_mime_header_list_remove_id ()
gboolean g_mime_header_list_remove_header ()
void g_mime_header_list_remove_all ()
void g_mime_header_list_remove_all_id ()
void g_mime_header_list_remove_at ()
ssize_t g_mime_header_list_write_to_stream ()
char * g_mime_header_list_to_string ()

Types and Values

Description

A GMimeHeader is a collection of rfc822 header fields and their values.

Functions

g_mime_header_id_to_name ()

const char *
g_mime_header_id_to_name (GMimeHeaderId id);

Gets the canonical field name for id . Like MimeKit's ToHeaderName(), unknown and out-of-range identifiers return "Unknown".

Parameters

id

a GMimeHeaderId

 

Returns

the canonical field name.

[transfer none]


g_mime_header_id_from_name ()

GMimeHeaderId
g_mime_header_id_from_name (const char *name);

Looks up a common header field, ignoring ASCII case. The entire name must match; whitespace and colons are not removed. Unrecognized names, including extension fields, map to GMIME_HEADER_UNKNOWN.

Parameters

name

a header field name

 

Returns

the header identifier.


GMimeHeaderRawValueFormatter ()

char *
(*GMimeHeaderRawValueFormatter) (GMimeHeader *header,
                                 GMimeFormatOptions *options,
                                 const char *value,
                                 const char *charset);

Function callback for encoding and formatting a header value.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions

 

value

an unencoded header value

 

charset

a charset

 

Returns

the encoded and formatted raw header value.


g_mime_header_format_addrlist ()

char *
g_mime_header_format_addrlist (GMimeHeader *header,
                               GMimeFormatOptions *options,
                               const char *value,
                               const char *charset);

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a Sender, From, Reply-To, To, Cc, or Bcc header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_content_disposition ()

char *
g_mime_header_format_content_disposition
                               (GMimeHeader *header,
                                GMimeFormatOptions *options,
                                const char *value,
                                const char *charset);

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a Content-Disposition header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_content_type ()

char *
g_mime_header_format_content_type (GMimeHeader *header,
                                   GMimeFormatOptions *options,
                                   const char *value,
                                   const char *charset);

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a Content-Type header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_default ()

char *
g_mime_header_format_default (GMimeHeader *header,
                              GMimeFormatOptions *options,
                              const char *value,
                              const char *charset);

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary. International formatting emits UTF-8 without RFC 2047 encoding and counts UTF-16 units when folding, keeping each Unicode character intact.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a header value

 

charset

a charset to use when encoding the value

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_disposition_notification_options ()

char *
g_mime_header_format_disposition_notification_options
                               (GMimeHeader *header,
                                GMimeFormatOptions *options,
                                const char *value,
                                const char *charset);

Removes whitespace within notification parameters and folds between parameters using the configured line length and newline format. Individual parameters are not split, and the first parameter is never moved off the initial line, even if it exceeds the line-length target.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a Disposition-Notification-Options header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_dkim_signature ()

char *
g_mime_header_format_dkim_signature (GMimeHeader *header,
                                     GMimeFormatOptions *options,
                                     const char *value,
                                     const char *charset);

Compacts tag whitespace and folds using the configured line length and newline format. Signature and body-hash tags start continuation lines. Long h and z tags fold between list entries; other long tags are split. Values are treated as ASCII, with lengths and split positions counted in bytes.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a DKIM-Signature, ARC-Message-Signature, or ARC-Seal header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_mailing_list_command ()

char *
g_mime_header_format_mailing_list_command
                               (GMimeHeader *header,
                                GMimeFormatOptions *options,
                                const char *value,
                                const char *charset);

Formats List-Archive, List-Help, List-Owner, List-Post, List-Subscribe and List-Unsubscribe values. Keeps angle-bracket URLs intact, collapses repeated commas, and folds comments and words using UTF-16 column counts without splitting Unicode characters. Non-International comments use RFC 2047 encoding; International comments retain their UTF-8 text.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a decoded UTF-8 mailing-list command header value

 

charset

the charset to use when encoding comments.

[nullable]

Returns

the formatted value, or NULL for invalid UTF-8.

[transfer full][nullable]


g_mime_header_format_message_id ()

char *
g_mime_header_format_message_id (GMimeHeader *header,
                                 GMimeFormatOptions *options,
                                 const char *value,
                                 const char *charset);

Unfolds value and applies the configured newline format without introducing new folds or parsing its message-id tokens.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a message-id header value, including In-Reply-To

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_received ()

char *
g_mime_header_format_received (GMimeHeader *header,
                               GMimeFormatOptions *options,
                               const char *value,
                               const char *charset);

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary. Preserves clause and comment boundaries and keeps the date-time together.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a Received header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_format_authentication_results ()

char *
g_mime_header_format_authentication_results
                               (GMimeHeader *header,
                                GMimeFormatOptions *options,
                                const char *value,
                                const char *charset);

Folds parsed Authentication-Results or ARC-Authentication-Results at syntactic token boundaries. Unparseable values use the default formatter. Existing raw headers are not changed until explicitly reformatted.

Parameters

header

a GMimeHeader

 

options

formatting options.

[nullable]

value

the header value

 

charset

unused.

[nullable]

Returns

the formatted raw header value.

[transfer full]


g_mime_header_format_references ()

char *
g_mime_header_format_references (GMimeHeader *header,
                                 GMimeFormatOptions *options,
                                 const char *value,
                                 const char *charset);

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary. Folds only between message-ids, never before the first one.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

a References header value

 

charset

a charset (note: unused)

 

Returns

a newly allocated string containing the reformatted value.


g_mime_header_new ()

GMimeHeader *
g_mime_header_new (const char *name,
                   const char *value,
                   const char *charset);

Creates a standalone header, preserving field-name case. Leading and trailing linear whitespace is trimmed and CR/LF characters are removed from value before formatting. The header owns its strings and an independent copy of the default parser options and has no stream offset.

Invalid names, NULL values, and invalid UTF-8 are programming errors reported through GLib's argument guards.

Parameters

name

a nonempty ASCII header field name without whitespace or a colon

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

Returns

a new GMimeHeader, or NULL on failure.

[transfer full][nullable]


g_mime_header_new_full ()

GMimeHeader *
g_mime_header_new_full (const char *name,
                        const char *value,
                        const char *charset,
                        GError **error);

Creates a standalone header using g_mime_header_set_value_full(). Invalid UTF-8 and unsupported charsets produce G_CONVERT_ERROR. Invalid Content-Type and Content-Disposition values produce a GMIME_ERROR parse error instead of using legacy fallback values. Invalid names and NULL values are programming errors.

Parameters

name

a nonempty ASCII header field name without whitespace or a colon

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

a new header, or NULL on failure.

[transfer full][nullable]


g_mime_header_new_with_id ()

GMimeHeader *
g_mime_header_new_with_id (GMimeHeaderId id,
                           const char *value,
                           const char *charset);

Creates a standalone header using the canonical field name for id and g_mime_header_new(). The header owns its strings and an independent copy of the default parser options. Unknown and out-of-range IDs are programming errors.

Use g_mime_header_new_with_id_full() for checked structured values and charset conversion with error reporting.

Parameters

id

a known GMimeHeaderId

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

Returns

a new header, or NULL on failure.

[transfer full][nullable]


g_mime_header_new_with_id_full ()

GMimeHeader *
g_mime_header_new_with_id_full (GMimeHeaderId id,
                                const char *value,
                                const char *charset,
                                GError **error);

Creates a standalone header using the canonical field name for id and g_mime_header_new_full(), including its value normalization, independent default parser options, formatting and error reporting. Unknown and out-of-range IDs are programming errors.

Parameters

id

a known GMimeHeaderId

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

a new header, or NULL on failure.

[transfer full][nullable]


g_mime_header_parse ()

GMimeHeader *
g_mime_header_parse (GMimeParserOptions *options,
                     const guint8 *buffer,
                     gsize length,
                     GError **error);

Parses a standalone header from the entire supplied byte span. The field consists of printable ASCII other than ':', followed by optional spaces or tabs and a colon. Like MimeKit's Header.TryParse(), this accepts an empty field name; it is not a complete RFC header validator.

All bytes after the colon belong to the value, including embedded NULs, folded lines and any subsequent header-like lines. Existing LF or CRLF endings are preserved; if the input does not end in LF, the default newline sequence is appended to the raw value.

The header owns copies of the input and parser options, has an unknown source offset (-1), and decodes its value lazily. Missing field separators return NULL with GMIME_ERROR_PARSE_ERROR and a relative byte offset. buffer may be NULL only when length is zero.

Parameters

options

parser options, or NULL for the defaults.

[nullable]

buffer

input bytes.

[array length=length][element-type guint8][nullable]

length

the number of bytes to parse

 

error

return location for a GError.

[nullable]

Returns

the parsed header, or NULL on error.

[nullable][transfer full]


g_mime_header_parse_text ()

GMimeHeader *
g_mime_header_parse_text (GMimeParserOptions *options,
                          const char *text,
                          GError **error);

Parses a standalone header using g_mime_header_parse(). Use the byte-span API for input containing embedded NULs or not terminated by a NUL.

Parameters

options

parser options, or NULL for the defaults.

[nullable]

text

a NUL-terminated UTF-8 header

 

error

return location for a GError.

[nullable]

Returns

the parsed header, or NULL on error.

[nullable][transfer full]


g_mime_header_clone ()

GMimeHeader *
g_mime_header_clone (GMimeHeader *header);

Clones the header, preserving its name, raw name and value, cached decoded value, charset, and formatting behavior without decoding or reformatting it. The clone has no change listeners and its stream offset is unknown (-1).

The clone shares immutable raw bytes and owns copies of its decoded strings and parser options. It can outlive the original header and its containing list. As with g_mime_parser_options_clone(), warning callback user data remains borrowed.

Parameters

header

a GMimeHeader

 

Returns

an independent copy of header .

[transfer full]


g_mime_header_unfold ()

char *
g_mime_header_unfold (const char *text);

Unfolds decoded header text for display. Leading and trailing linear whitespace (SP, HTAB, CR and LF) is removed; other whitespace is retained. All CR and LF characters are removed, including internal ones. A NULL input produces an empty string.

This does not decode RFC 2047 encoded words. Use the header value getters to decode raw header bytes before unfolding.

Parameters

text

a NUL-terminated UTF-8 header value.

[nullable]

Returns

newly allocated unfolded UTF-8 text.

[transfer full]


g_mime_header_get_id ()

GMimeHeaderId
g_mime_header_get_id (GMimeHeader *header);

Gets the header identifier, determined from its field name without changing the original spelling or raw bytes. Extension and unrecognized fields return GMIME_HEADER_UNKNOWN. Changing the value does not change the identifier.

Parameters

header

a GMimeHeader

 

Returns

the header identifier.


g_mime_header_get_name ()

const char *
g_mime_header_get_name (GMimeHeader *header);

Gets the header's name. Embedded NUL bytes in an invalid field are represented as "\0" in this display/lookup string; the original bytes are preserved when writing the header.

Parameters

header

a GMimeHeader

 

Returns

the header name or NULL if invalid.


g_mime_header_get_raw_name ()

GBytes *
g_mime_header_get_raw_name (GMimeHeader *header);

Gets the header's raw name. The raw header name is the complete byte sequence up to (but not including) the ':' separating the header's name from its value. This byte sequence may be different from the value returned by g_mime_header_get_name() if the parsed message's header contained trailing whitespace after the header name, such as: "Subject : this is the subject\r\n". Embedded NULs in invalid fields are retained. The immutable bytes remain valid after the header is changed or destroyed.

Parameters

header

a GMimeHeader

 

Returns

the complete raw header name.

[transfer full]


g_mime_header_get_offset ()

gint64
g_mime_header_get_offset (GMimeHeader *header);

Gets the header's stream offset if known.

Parameters

header

a GMimeHeader

 

Returns

the header offset or -1 if unknown.


g_mime_header_get_value ()

const char *
g_mime_header_get_value (GMimeHeader *header);

Gets the header's unfolded value, trimming leading and trailing linear whitespace as in g_mime_header_unfold(). Literal and decoded NUL characters are replaced with the Unicode replacement character U+FFFD.

Parameters

header

a GMimeHeader

 

Returns

the header's decoded value or NULL if invalid.


g_mime_header_get_value_with_charset ()

char *
g_mime_header_get_value_with_charset (GMimeHeader *header,
                                      const char *charset,
                                      GError **error);

Decodes and unfolds the stored raw value using a copy of the header's parser options with charset as the fallback for undeclared 8-bit text. Valid UTF-8 takes priority, and supported RFC 2047 declarations are honored. Leading and trailing linear whitespace is removed.

The result is newly allocated, even if the decoded value was already cached. The header's options, cache, raw bytes and formatting state are unchanged, and no change event is emitted. An unset legacy placeholder returns an empty string after validating charset .

Empty, invalid or unsupported charsets report G_CONVERT_ERROR. Generic UTF-16/32 aliases use little-endian bytes. The historical MimeKit alias "unicode" selects UTF-8, not UTF-16. Literal and decoded NUL characters are replaced with the Unicode replacement character U+FFFD. The stored raw bytes remain unchanged. No failure returns partial text.

Parameters

header

a GMimeHeader

 

charset

a nonempty fallback charset name

 

error

return location for an error, or NULL

 

Returns

freshly decoded UTF-8 text, or NULL on failure.

[transfer full][nullable]


g_mime_header_set_value ()

void
g_mime_header_set_value (GMimeHeader *header,
                         GMimeFormatOptions *options,
                         const char *value,
                         const char *charset);

Sets the header's decoded value.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

value

the new header value

 

charset

a charset.

[nullable]

g_mime_header_set_value_full ()

gboolean
g_mime_header_set_value_full (GMimeHeader *header,
                              GMimeFormatOptions *options,
                              const char *value,
                              const char *charset,
                              GError **error);

Trims leading and trailing linear whitespace, removes CR/LF characters, and formats value before replacing the header's state. Invalid UTF-8 and unsupported charsets produce G_CONVERT_ERROR. Content-Type and Content-Disposition use the checked parsers and report GMIME_ERROR parse errors, retaining those parsers' configured recovery behavior. Other fields use the existing formatters, including UTF-8 fallback for text that cannot be represented in a supported charset.

On failure no header state is changed and no change event is emitted. On success the formatted raw value is cached using options , rather than being reformatted on every write. International output can still reformat it as UTF-8; this is not an explicit raw-value assignment. Invalid parsed field names are not repaired by assigning a value.

Parameters

header

a GMimeHeader

 

options

formatting options, or NULL for the defaults.

[nullable]

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_get_raw_value ()

GBytes *
g_mime_header_get_raw_value (GMimeHeader *header);

Gets the complete raw value before decoding or charset conversion, including any embedded NUL bytes. The returned immutable bytes remain valid after the header is changed or destroyed. An unset legacy placeholder returns NULL.

Parameters

header

a GMimeHeader

 

Returns

the raw bytes, or NULL if unset.

[transfer full][nullable]


g_mime_header_set_raw_value ()

gboolean
g_mime_header_set_raw_value (GMimeHeader *header,
                             GBytes *raw_value,
                             GError **error);

Sets the raw value without encoding, folding or charset validation. Empty values and values whose final byte is not LF report GMIME_ERROR_PARSE_ERROR without changing the header or notifying owners. LF and CRLF endings are both accepted. No leading whitespace or other header syntax is required or added.

The header retains a reference to the immutable bytes, clears its decoded cache and emits a change event, even when assigning the current bytes. Its field name, source offset, charset and parser options are preserved. Explicit raw values are preserved with International formatting until replaced by a decoded-value assignment.

Embedded NUL bytes are retained for serialization and byte-based access. Use g_mime_header_get_value_with_charset() to reject NUL-containing text.

Parameters

header

a GMimeHeader

 

raw_value

the complete raw value, ending in LF

 

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_write_to_stream ()

ssize_t
g_mime_header_write_to_stream (GMimeHeader *header,
                               GMimeFormatOptions *options,
                               GMimeStream *stream);

Writes the header to the specified stream. International formatting reformats parsed text, address, and content headers as UTF-8 without changing their stored raw values. Explicit raw assignments and parsed trace, identifier, authentication, and signature fields are preserved.

Parameters

header

a GMimeHeader

 

options

a GMimeFormatOptions or NULL.

[nullable]

stream

a GMimeStream

 

Returns

the number of bytes written, or -1 on fail.


g_mime_header_to_string ()

char *
g_mime_header_to_string (GMimeHeader *header);

Formats the header for display using its name and decoded value, separated by a colon and a space. The raw name's trailing whitespace is not included, and no encoding, folding, or terminating newline is added. Invalid parsed fields return their display name alone, without adding a colon or a value.

This is not a transport serialization API. Use g_mime_header_write_to_stream() to write the encoded header.

Parameters

header

a GMimeHeader

 

Returns

a newly allocated display string.

[transfer full]


g_mime_header_list_new ()

GMimeHeaderList *
g_mime_header_list_new (GMimeParserOptions *options);

Creates a new GMimeHeaderList object.

Parameters

options

a GMimeParserOptions or NULL.

[nullable]

Returns

a new header list object.


g_mime_header_list_new_with_capacity ()

GMimeHeaderList *
g_mime_header_list_new_with_capacity (GMimeParserOptions *options,
                                      int capacity);

Creates an empty GMimeHeaderList with space for at least capacity headers. The list grows as needed; capacity is not a count or a limit. The list owns a snapshot of options .

Parameters

options

a GMimeParserOptions or NULL.

[nullable]

capacity

the initial number of headers to reserve space for, or 0

 

Returns

a new header list object.

[transfer full]


g_mime_header_list_load ()

GMimeHeaderList *
g_mime_header_list_load (GMimeParserOptions *options,
                         GMimeStream *stream,
                         GError **error);

Loads a header block from stream using g_mime_parser_construct_headers(). The list owns its parsed strings and a snapshot of options , and remains usable after stream is released. The stream is not closed or reset.

The temporary parser may read ahead beyond the terminating blank line. Use a GMimeParser directly when the logical input position or subsequent buffered input is needed. The header/body separator is not part of the list.

Parameters

options

a GMimeParserOptions or NULL.

[nullable]

stream

the input stream

 

error

return location for a GError, or NULL

 

Returns

the loaded headers, or NULL on failure.

[nullable][transfer full]


g_mime_header_list_load_file ()

GMimeHeaderList *
g_mime_header_list_load_file (GMimeParserOptions *options,
                              const char *filename,
                              GError **error);

Opens filename and loads its first header block using g_mime_header_list_load(). Empty files return an empty list. The file is closed on both success and failure, and the returned list owns its strings and a snapshot of options .

File open and input I/O errors use the GMIME_ERROR domain with a positive errno code. Fatal syntax errors and header length violations use the same errors as g_mime_parser_construct_headers().

Parameters

options

a GMimeParserOptions or NULL.

[nullable]

filename

the path to the input file.

[type filename]

error

return location for a GError, or NULL

 

Returns

the loaded headers, or NULL on failure.

[nullable][transfer full]


g_mime_header_list_get_count ()

int
g_mime_header_list_get_count (GMimeHeaderList *headers);

Gets the number of headers contained within the header list.

Parameters

headers

a GMimeHeaderList

 

Returns

the number of headers in the header list.


g_mime_header_list_clear ()

void
g_mime_header_list_clear (GMimeHeaderList *headers);

Removes all of the headers from the GMimeHeaderList.

Parameters

headers

a GMimeHeaderList

 

g_mime_header_list_contains ()

gboolean
g_mime_header_list_contains (GMimeHeaderList *headers,
                             const char *name);

Checks whether or not a header exists.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

Returns

TRUE if the specified header exists or FALSE otherwise.


g_mime_header_list_contains_id ()

gboolean
g_mime_header_list_contains_id (GMimeHeaderList *headers,
                                GMimeHeaderId id);

Checks whether a header with the canonical name for id exists, ignoring ASCII case. Unknown and out-of-range IDs are programming errors. This does not decode values or notify owners.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

Returns

TRUE if the specified header exists, or FALSE otherwise.


g_mime_header_list_contains_header ()

gboolean
g_mime_header_list_contains_header (GMimeHeaderList *headers,
                                    GMimeHeader *header);

Checks for the exact header instance, not another header with the same name or value.

Parameters

headers

a GMimeHeaderList

 

header

a GMimeHeader

 

Returns

TRUE if header is in the list, or FALSE otherwise.


g_mime_header_list_index_of ()

int
g_mime_header_list_index_of (GMimeHeaderList *headers,
                             const char *name);

Finds the first header with the specified name, ignoring ASCII case.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

Returns

the 0-based index of the first matching header, or -1 if not found.


g_mime_header_list_index_of_id ()

int
g_mime_header_list_index_of_id (GMimeHeaderList *headers,
                                GMimeHeaderId id);

Finds the first header with the specified cached identifier without decoding values or comparing field-name strings. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

Returns

the 0-based index of the first matching header, or -1 if absent.


g_mime_header_list_index_of_header ()

int
g_mime_header_list_index_of_header (GMimeHeaderList *headers,
                                    GMimeHeader *header);

Finds the first occurrence of the exact header instance.

Parameters

headers

a GMimeHeaderList

 

header

a GMimeHeader

 

Returns

the 0-based index of header , or -1 if not found.


g_mime_header_list_last_index_of ()

int
g_mime_header_list_last_index_of (GMimeHeaderList *headers,
                                  const char *name);

Finds the last header with the specified name, ignoring ASCII case.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

Returns

the 0-based index of the last matching header, or -1 if not found.


g_mime_header_list_last_index_of_id ()

int
g_mime_header_list_last_index_of_id (GMimeHeaderList *headers,
                                     GMimeHeaderId id);

Finds the last header with the specified cached identifier without decoding values or comparing field-name strings. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

Returns

the 0-based index of the last matching header, or -1 if absent.


g_mime_header_list_add ()

int
g_mime_header_list_add (GMimeHeaderList *headers,
                        GMimeHeader *header);

Appends the existing header without copying or reformatting it. The list takes its own reference. A header may be shared between lists or occur more than once in a list; each occurrence retains a reference.

Parameters

headers

a GMimeHeaderList

 

header

a GMimeHeader.

[transfer none]

Returns

the index of the added header, or -1 on invalid arguments.


g_mime_header_list_insert_header ()

void
g_mime_header_list_insert_header (GMimeHeaderList *headers,
                                  int index,
                                  GMimeHeader *header);

Inserts the existing header, retaining its identity, raw text and stream offset. The list takes a reference for each occurrence. Name lookup still returns the first matching header.

If header borrowed its parser options from a list, it takes an independent snapshot before insertion so it remains usable after that list is freed. Other header state is unchanged. Changes notify every containing list until its last occurrence is removed from that list.

Parameters

headers

a GMimeHeaderList

 

index

the 0-based insertion index, from zero through the current count

 

header

a GMimeHeader.

[transfer none]

g_mime_header_list_insert ()

void
g_mime_header_list_insert (GMimeHeaderList *headers,
                           int index,
                           const char *name,
                           const char *value,
                           const char *charset);

Inserts a newly created header at index , preserving the order of existing headers. Name lookup continues to return the first matching header. An index equal to the current count appends the header.

Parameters

headers

a GMimeHeaderList

 

index

the 0-based insertion index, from zero through the current count

 

name

header name

 

value

header value, or NULL to reserve an unset header.

[nullable]

charset

a charset.

[nullable]

g_mime_header_list_insert_full ()

gboolean
g_mime_header_list_insert_full (GMimeHeaderList *headers,
                                int index,
                                const char *name,
                                const char *value,
                                const char *charset,
                                GError **error);

Constructs a header using g_mime_header_new_full() before inserting it. The header owns an independent snapshot of the default parser options. Existing headers retain their identity, values, offsets and relative order. Name lookup continues to return the first matching header.

Failure leaves the list, its body-separator state and notifications unchanged. Invalid indexes, field names and NULL values are programming errors. Unlike g_mime_header_list_insert(), this does not reserve unset headers or use legacy structured-value fallbacks.

Parameters

headers

a GMimeHeaderList

 

index

the 0-based insertion index, from zero through the current count

 

name

a nonempty ASCII header field name without whitespace or a colon

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_insert_id_full ()

gboolean
g_mime_header_list_insert_id_full (GMimeHeaderList *headers,
                                   int index,
                                   GMimeHeaderId id,
                                   const char *value,
                                   const char *charset,
                                   GError **error);

Constructs and inserts a checked header using the canonical field name for id and g_mime_header_list_insert_full(). Existing headers retain their identity, raw bytes and relative order. Validation failure leaves the list and its notifications unchanged. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

index

the 0-based insertion index, from zero through the current count

 

id

a known GMimeHeaderId

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_get_header ()

GMimeHeader *
g_mime_header_list_get_header (GMimeHeaderList *headers,
                               const char *name);

Gets the first header with the specified name.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

Returns

a GMimeHeader for the specified name .

[transfer none]


g_mime_header_list_get_header_at ()

GMimeHeader *
g_mime_header_list_get_header_at (GMimeHeaderList *headers,
                                  int index);

Gets the header at the specified index within the list.

Parameters

headers

a GMimeHeaderList

 

index

the 0-based index of the header

 

Returns

the header at position index .

[transfer none]


g_mime_header_list_set_header_at ()

void
g_mime_header_list_set_header_at (GMimeHeaderList *headers,
                                  int index,
                                  GMimeHeader *header);

Replaces just the header at index , without changing the list length or removing duplicate fields. Assigning the instance already at index does nothing. Invalid indexes are programming errors reported by GLib's argument guards without changing the list or header .

The list retains its own reference and preserves header 's raw text and stream offset. Borrowed parser options are snapshotted as with insertion. Name lookup continues to identify the first matching occurrence, even if either instance occurs elsewhere in the list.

Assigning a matching field name emits a change notification. Assigning a different field name emits removal of the old header and addition of the new header after the list and name lookups have been updated.

Parameters

headers

a GMimeHeaderList

 

index

the 0-based index of the header to replace

 

header

the replacement GMimeHeader.

[transfer none]

g_mime_header_list_prepend ()

void
g_mime_header_list_prepend (GMimeHeaderList *headers,
                            const char *name,
                            const char *value,
                            const char *charset);

Prepends a header. If value is NULL, a space will be set aside for it (useful for setting the order of headers before values can be obtained for them) otherwise the header will be unset.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

value

header value

 

charset

a charset.

[nullable]

g_mime_header_list_prepend_full ()

gboolean
g_mime_header_list_prepend_full (GMimeHeaderList *headers,
                                 const char *name,
                                 const char *value,
                                 const char *charset,
                                 GError **error);

Constructs and prepends a checked header. This is equivalent to g_mime_header_list_insert_full() with an index of zero, including its validation, ownership and failure behavior.

Parameters

headers

a GMimeHeaderList

 

name

a nonempty ASCII header field name without whitespace or a colon

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_append ()

void
g_mime_header_list_append (GMimeHeaderList *headers,
                           const char *name,
                           const char *value,
                           const char *charset);

Appends a header. If value is NULL, a space will be set aside for it (useful for setting the order of headers before values can be obtained for them) otherwise the header will be unset.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

value

header value

 

charset

a charset.

[nullable]

g_mime_header_list_append_full ()

gboolean
g_mime_header_list_append_full (GMimeHeaderList *headers,
                                const char *name,
                                const char *value,
                                const char *charset,
                                GError **error);

Constructs and appends a checked header. This is equivalent to g_mime_header_list_insert_full() at the current count, including its validation, ownership and failure behavior.

Parameters

headers

a GMimeHeaderList

 

name

a nonempty ASCII header field name without whitespace or a colon

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_append_id_full ()

gboolean
g_mime_header_list_append_id_full (GMimeHeaderList *headers,
                                   GMimeHeaderId id,
                                   const char *value,
                                   const char *charset,
                                   GError **error);

Constructs and appends a checked header using the canonical field name for id and g_mime_header_list_append_full(). Existing headers, including duplicates, are unchanged. Unknown and out-of-range IDs are programming errors. Failure leaves the list and its notifications unchanged.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_set ()

void
g_mime_header_list_set (GMimeHeaderList *headers,
                        const char *name,
                        const char *value,
                        const char *charset);

Set the value of the specified header. If value is NULL and the header, name , had not been previously set, a space will be set aside for it (useful for setting the order of headers before values can be obtained for them) otherwise the header will be unset.

Note: If there are multiple headers with the specified field name, the first instance of the header will be replaced and further instances will be removed.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

value

header value

 

charset

a charset.

[nullable]

g_mime_header_list_get_value ()

const char *
g_mime_header_list_get_value (GMimeHeaderList *headers,
                              const char *name);

Gets the decoded value of the first matching header without changing list order or notifying owners. Later matches are not considered, even if the first is an unset legacy placeholder.

Parameters

headers

a GMimeHeaderList

 

name

the case-insensitive header field name

 

Returns

the first header's decoded value, or NULL if no match exists or the first header is unset. The value is owned by the header and is invalidated when that header is changed or released.

[transfer none][nullable]


g_mime_header_list_get_value_by_id ()

const char *
g_mime_header_list_get_value_by_id (GMimeHeaderList *headers,
                                    GMimeHeaderId id);

Gets the decoded value of the first header with the canonical name for id , ignoring ASCII case. Like g_mime_header_list_get_value(), this does not skip unset placeholders, change raw bytes or notify owners. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

Returns

the first header's decoded value, or NULL if absent or unset. The value is owned by the header and is invalidated when that header is changed or released.

[transfer none][nullable]


g_mime_header_list_set_value_full ()

gboolean
g_mime_header_list_set_value_full (GMimeHeaderList *headers,
                                   const char *name,
                                   const char *value,
                                   const char *charset,
                                   GError **error);

Sets only the first matching header using g_mime_header_set_value_full(), or appends a checked header using g_mime_header_list_append_full() if absent. Existing matches retain their identity, names, parser options and source offsets. Later duplicates are not removed or changed, unless they are additional occurrences of the same header object.

Existing-header changes notify all lists sharing that object and preserve each list's body-separator state. Appending adds a body separator and emits the normal add notification. Validation failure leaves header and list state unchanged and emits no notification.

Unlike g_mime_header_list_set(), this does not collapse duplicates. An invalid parsed field name is not repaired; if no match exists, name must satisfy the checked constructor's field-name requirements.

Parameters

headers

a GMimeHeaderList

 

name

the case-insensitive header field name

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_set_value_by_id_full ()

gboolean
g_mime_header_list_set_value_by_id_full
                               (GMimeHeaderList *headers,
                                GMimeHeaderId id,
                                const char *value,
                                const char *charset,
                                GError **error);

Sets only the first matching header, or appends a checked header with the canonical field name for id if absent. Like MimeKit's HeaderId indexer, this preserves the first header's identity and field spelling and does not collapse duplicates. Uses g_mime_header_list_set_value_full() and its existing ownership, notification and atomic failure behavior. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_replace ()

void
g_mime_header_list_replace (GMimeHeaderList *headers,
                            GMimeHeader *header);

Replaces all headers with the same field name, ignoring ASCII case, with the exact header instance at the first matching position. If no match exists, header is appended. Other fields retain their order.

The list takes its own reference without copying or reformatting header . The replacement may already occur in this list or be shared with another list. Borrowed parser options are snapshotted as with instance insertion. Removed headers stop notifying this list; other containing lists are unaffected.

Replacing existing fields emits one normal change notification after the list and name lookup have been updated. Appending emits an add notification.

Parameters

headers

a GMimeHeaderList

 

header

the replacement GMimeHeader.

[transfer none]

g_mime_header_list_replace_value_full ()

gboolean
g_mime_header_list_replace_value_full (GMimeHeaderList *headers,
                                       const char *name,
                                       const char *value,
                                       const char *charset,
                                       GError **error);

Constructs a header using g_mime_header_new_full() and replaces all case-insensitive matches using g_mime_header_list_replace(). If no match exists, the header is appended. The new header owns an independent snapshot of the default parser options.

Unlike g_mime_header_list_set(), this replaces the first matching object instead of changing its value. Retained references and other lists sharing removed headers are unaffected. All validation precedes mutation; failure leaves the list, its body-separator state and notifications unchanged. Successful replacement uses the existing single change notification, after the final list and name lookup are established.

Parameters

headers

a GMimeHeaderList

 

name

a nonempty ASCII header field name without whitespace or a colon

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_replace_value_by_id_full ()

gboolean
g_mime_header_list_replace_value_by_id_full
                               (GMimeHeaderList *headers,
                                GMimeHeaderId id,
                                const char *value,
                                const char *charset,
                                GError **error);

Constructs a checked header with the canonical field name for id and replaces all matching headers using g_mime_header_list_replace_value_full(). Unlike assignment, replacement installs a new header object and removes duplicates. If absent, the new header is appended. Existing native owner notifications and atomic failure behavior are preserved. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

value

the decoded UTF-8 header value

 

charset

the encoding charset, or NULL for UTF-8.

[nullable]

error

return location for an error, or NULL

 

Returns

TRUE on success, or FALSE on failure.


g_mime_header_list_remove ()

gboolean
g_mime_header_list_remove (GMimeHeaderList *headers,
                           const char *name);

Remove the first instance of the specified header.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

Returns

TRUE if the header was successfully removed or FALSE if the specified header could not be found.


g_mime_header_list_remove_id ()

gboolean
g_mime_header_list_remove_id (GMimeHeaderList *headers,
                              GMimeHeaderId id);

Removes the first header with the canonical name for id , ignoring ASCII case. Uses the normal removal and owner-notification paths and preserves the other headers' order and raw bytes. Does nothing if absent. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

Returns

TRUE if the first occurrence was removed, or FALSE if absent.


g_mime_header_list_remove_header ()

gboolean
g_mime_header_list_remove_header (GMimeHeaderList *headers,
                                  GMimeHeader *header);

Removes the first occurrence of the exact header instance. A different header with the same name and value is not removed.

Parameters

headers

a GMimeHeaderList

 

header

a GMimeHeader

 

Returns

TRUE if an occurrence was removed, or FALSE if absent.


g_mime_header_list_remove_all ()

void
g_mime_header_list_remove_all (GMimeHeaderList *headers,
                               const char *name);

Removes every header with the specified name, ignoring ASCII case. Remaining headers retain their order and raw values. Each removed header emits the normal removal notification and stops notifying the list. Does nothing if no matching headers exist.

Parameters

headers

a GMimeHeaderList

 

name

header name

 

g_mime_header_list_remove_all_id ()

void
g_mime_header_list_remove_all_id (GMimeHeaderList *headers,
                                  GMimeHeaderId id);

Removes every header with the canonical name for id , ignoring ASCII case. Each occurrence emits the normal removal notification; surviving headers retain their order and raw bytes. Does nothing if absent. Unknown and out-of-range IDs are programming errors.

Parameters

headers

a GMimeHeaderList

 

id

a known GMimeHeaderId

 

g_mime_header_list_remove_at ()

void
g_mime_header_list_remove_at (GMimeHeaderList *headers,
                              int index);

Removes the header at the specified index from headers .

Parameters

headers

a GMimeHeaderList

 

index

the 0-based index of the header to remove

 

g_mime_header_list_write_to_stream ()

ssize_t
g_mime_header_list_write_to_stream (GMimeHeaderList *headers,
                                    GMimeFormatOptions *options,
                                    GMimeStream *stream);

Writes the headers followed by the header/body separator. A parsed list without a separator omits it until a structural edit is made. Changing a contained header's value does not change this state. Hidden headers are only omitted when writing merged message headers, not standalone header lists or descendant MIME entity headers.

Newline conversion is completed before the separator is written. The caller's stream is not closed.

Parameters

headers

a GMimeHeaderList

 

options

a GMimeFormatOptions or NULL.

[nullable]

stream

output stream

 

Returns

the number of bytes written or -1 on fail.


g_mime_header_list_to_string ()

char *
g_mime_header_list_to_string (GMimeHeaderList *headers,
                              GMimeFormatOptions *options);

Allocates a string buffer containing the raw rfc822 headers contained in headers , without the header/body separator.

Parameters

headers

a GMimeHeaderList

 

options

a GMimeFormatOptions or NULL.

[nullable]

Returns

a string containing the header block, or NULL on failure.

[nullable]

Types and Values

GMimeHeader

typedef struct _GMimeHeader GMimeHeader;

A message or mime-part header.


GMimeHeaderList

typedef struct _GMimeHeaderList GMimeHeaderList;

A list of message or mime-part headers.


enum GMimeHeaderId

Identifiers for common header fields. Comparing enum values is faster and less error-prone than comparing strings.

Members

GMIME_HEADER_ACCEPT_LANGUAGE

Accept-Language.

 

GMIME_HEADER_AD_HOC

Ad-Hoc.

 

GMIME_HEADER_ALTERNATE_RECIPIENT

Alternate-Recipient.

 

GMIME_HEADER_APPARENTLY_TO

Apparently-To.

 

GMIME_HEADER_APPROVED

Approved.

 

GMIME_HEADER_ARC_AUTHENTICATION_RESULTS

ARC-Authentication-Results.

 

GMIME_HEADER_ARC_MESSAGE_SIGNATURE

ARC-Message-Signature.

 

GMIME_HEADER_ARC_SEAL

ARC-Seal.

 

GMIME_HEADER_ARCHIVE

Archive.

 

GMIME_HEADER_ARCHIVED_AT

Archived-At.

 

GMIME_HEADER_ARTICLE

Article.

 

GMIME_HEADER_AUTHENTICATION_RESULTS

Authentication-Results.

 

GMIME_HEADER_AUTOCRYPT

Autocrypt.

 

GMIME_HEADER_AUTOCRYPT_GOSSIP

Autocrypt-Gossip.

 

GMIME_HEADER_AUTOCRYPT_SETUP_MESSAGE

Autocrypt-Setup-Message.

 

GMIME_HEADER_AUTOFORWARDED

Autoforwarded.

 

GMIME_HEADER_AUTO_SUBMITTED

Auto-Submitted, as defined in RFC 3834.

 

GMIME_HEADER_AUTOSUBMITTED

Legacy Autosubmitted, as defined in RFC 2156. Most callers want GMIME_HEADER_AUTO_SUBMITTED instead.

 

GMIME_HEADER_BASE

Base.

 

GMIME_HEADER_BCC

Bcc.

 

GMIME_HEADER_BODY

Body.

 

GMIME_HEADER_BYTES

Bytes.

 

GMIME_HEADER_CC

Cc.

 

GMIME_HEADER_COMMENTS

Comments.

 

GMIME_HEADER_CONTENT_ALTERNATIVE

Content-Alternative.

 

GMIME_HEADER_CONTENT_BASE

Content-Base.

 

GMIME_HEADER_CONTENT_CLASS

Content-Class.

 

GMIME_HEADER_CONTENT_DESCRIPTION

Content-Description.

 

GMIME_HEADER_CONTENT_DISPOSITION

Content-Disposition.

 

GMIME_HEADER_CONTENT_DURATION

Content-Duration.

 

GMIME_HEADER_CONTENT_FEATURES

Content-Features.

 

GMIME_HEADER_CONTENT_ID

Content-Id.

 

GMIME_HEADER_CONTENT_IDENTIFIER

Content-Identifier.

 

GMIME_HEADER_CONTENT_LANGUAGE

Content-Language.

 

GMIME_HEADER_CONTENT_LENGTH

Content-Length.

 

GMIME_HEADER_CONTENT_LOCATION

Content-Location.

 

GMIME_HEADER_CONTENT_MD5

Content-Md5.

 

GMIME_HEADER_CONTENT_RETURN

Content-Return.

 

GMIME_HEADER_CONTENT_TRANSFER_ENCODING

Content-Transfer-Encoding.

 

GMIME_HEADER_CONTENT_TRANSLATION_TYPE

Content-Translation-Type.

 

GMIME_HEADER_CONTENT_TYPE

Content-Type.

 

GMIME_HEADER_CONTROL

Control.

 

GMIME_HEADER_CONVERSION

Conversion.

 

GMIME_HEADER_CONVERSION_WITH_LOSS

Conversion-With-Loss.

 

GMIME_HEADER_DATE

Date.

 

GMIME_HEADER_DATE_RECEIVED

Date-Received.

 

GMIME_HEADER_DEFERRED_DELIVERY

Deferred-Delivery.

 

GMIME_HEADER_DELIVERY_DATE

Delivery-Date.

 

GMIME_HEADER_DISCLOSE_RECIPIENTS

Disclose-Recipients.

 

GMIME_HEADER_DISPOSITION_NOTIFICATION_OPTIONS

Disposition-Notification-Options.

 

GMIME_HEADER_DISPOSITION_NOTIFICATION_TO

Disposition-Notification-To.

 

GMIME_HEADER_DISTRIBUTION

Distribution.

 

GMIME_HEADER_DKIM_SIGNATURE

DKIM-Signature.

 

GMIME_HEADER_DOMAIN_KEY_SIGNATURE

DomainKey-Signature.

 

GMIME_HEADER_ENCODING

Encoding.

 

GMIME_HEADER_ENCRYPTED

Encrypted.

 

GMIME_HEADER_EXPIRES

Expires.

 

GMIME_HEADER_EXPIRY_DATE

Expiry-Date.

 

GMIME_HEADER_FOLLOWUP_TO

Followup-To.

 

GMIME_HEADER_FROM

From.

 

GMIME_HEADER_GENERATE_DELIVERY_REPORT

Generate-Delivery-Report.

 

GMIME_HEADER_IMPORTANCE

Importance.

 

GMIME_HEADER_INJECTION_DATE

Injection-Date.

 

GMIME_HEADER_INJECTION_INFO

Injection-Info.

 

GMIME_HEADER_IN_REPLY_TO

In-Reply-To.

 

GMIME_HEADER_KEYWORDS

Keywords.

 

GMIME_HEADER_LANGUAGE

Language.

 

GMIME_HEADER_LATEST_DELIVERY_TIME

Latest-Delivery-Time.

 

GMIME_HEADER_LINES

Lines.

 

GMIME_HEADER_LIST_ARCHIVE

List-Archive.

 

GMIME_HEADER_LIST_HELP

List-Help.

 

GMIME_HEADER_LIST_ID

List-Id.

 

GMIME_HEADER_LIST_OWNER

List-Owner.

 

GMIME_HEADER_LIST_POST

List-Post.

 

GMIME_HEADER_LIST_SUBSCRIBE

List-Subscribe.

 

GMIME_HEADER_LIST_UNSUBSCRIBE

List-Unsubscribe.

 

GMIME_HEADER_LIST_UNSUBSCRIBE_POST

List-Unsubscribe-Post.

 

GMIME_HEADER_MESSAGE_ID

Message-Id.

 

GMIME_HEADER_MIME_VERSION

MIME-Version.

 

GMIME_HEADER_NEWSGROUPS

Newsgroups.

 

GMIME_HEADER_NNTP_POSTING_HOST

Nntp-Posting-Host.

 

GMIME_HEADER_ORGANIZATION

Organization.

 

GMIME_HEADER_ORIGINAL_FROM

Original-From.

 

GMIME_HEADER_ORIGINAL_MESSAGE_ID

Original-Message-Id.

 

GMIME_HEADER_ORIGINAL_RECIPIENT

Original-Recipient.

 

GMIME_HEADER_ORIGINAL_RETURN_ADDRESS

Original-Return-Address.

 

GMIME_HEADER_ORIGINAL_SUBJECT

Original-Subject.

 

GMIME_HEADER_PATH

Path.

 

GMIME_HEADER_PRECEDENCE

Precedence.

 

GMIME_HEADER_PREVENT_NON_DELIVERY_REPORT

Prevent-NonDelivery-Report.

 

GMIME_HEADER_PRIORITY

Priority.

 

GMIME_HEADER_RECEIVED

Received.

 

GMIME_HEADER_RECEIVED_SPF

Received-SPF.

 

GMIME_HEADER_REFERENCES

References.

 

GMIME_HEADER_RELAY_VERSION

Relay-Version.

 

GMIME_HEADER_REPLY_BY

Reply-By.

 

GMIME_HEADER_REPLY_TO

Reply-To.

 

GMIME_HEADER_REQUIRE_RECIPIENT_VALID_SINCE

Require-Recipient-Valid-Since.

 

GMIME_HEADER_RESENT_BCC

Resent-Bcc.

 

GMIME_HEADER_RESENT_CC

Resent-Cc.

 

GMIME_HEADER_RESENT_DATE

Resent-Date.

 

GMIME_HEADER_RESENT_FROM

Resent-From.

 

GMIME_HEADER_RESENT_MESSAGE_ID

Resent-Message-Id.

 

GMIME_HEADER_RESENT_REPLY_TO

Resent-Reply-To.

 

GMIME_HEADER_RESENT_SENDER

Resent-Sender.

 

GMIME_HEADER_RESENT_TO

Resent-To.

 

GMIME_HEADER_RETURN_PATH

Return-Path.

 

GMIME_HEADER_RETURN_RECEIPT_TO

Return-Receipt-To.

 

GMIME_HEADER_SEE_ALSO

See-Also.

 

GMIME_HEADER_SENDER

Sender.

 

GMIME_HEADER_SENSITIVITY

Sensitivity.

 

GMIME_HEADER_SOLICITATION

Solicitation.

 

GMIME_HEADER_STATUS

Status.

 

GMIME_HEADER_SUBJECT

Subject.

 

GMIME_HEADER_SUMMARY

Summary.

 

GMIME_HEADER_SUPERSEDES

Supersedes.

 

GMIME_HEADER_TLS_REQUIRED

TLS-Required.

 

GMIME_HEADER_TO

To.

 

GMIME_HEADER_USER_AGENT

User-Agent.

 

GMIME_HEADER_X400_CONTENT_IDENTIFIER

X400-Content-Identifier.

 

GMIME_HEADER_X400_CONTENT_RETURN

X400-Content-Return.

 

GMIME_HEADER_X400_CONTENT_TYPE

X400-Content-Type.

 

GMIME_HEADER_X400_MTS_IDENTIFIER

X400-MTS-Identifier.

 

GMIME_HEADER_X400_ORIGINATOR

X400-Originator.

 

GMIME_HEADER_X400_RECEIVED

X400-Received.

 

GMIME_HEADER_X400_RECIPIENTS

X400-Recipients.

 

GMIME_HEADER_X400_TRACE

X400-Trace.

 

GMIME_HEADER_X_MAILER

X-Mailer.

 

GMIME_HEADER_X_MSMAIL_PRIORITY

X-MSMail-Priority.

 

GMIME_HEADER_X_PRIORITY

X-Priority.

 

GMIME_HEADER_X_STATUS

X-Status.

 

GMIME_HEADER_UNKNOWN

An unknown header field.

 

See Also

GMimeEntity