| Top |
| GMimeMessageIdList * | g_mime_message_id_list_new () |
| GMimeMessageIdList * | g_mime_message_id_list_clone () |
| GMimeMessageIdList * | g_mime_message_id_list_parse () |
| int | g_mime_message_id_list_length () |
| int | g_mime_message_id_list_add () |
| void | g_mime_message_id_list_add_range () |
| void | g_mime_message_id_list_insert () |
| gboolean | g_mime_message_id_list_remove () |
| gboolean | g_mime_message_id_list_remove_at () |
| gboolean | g_mime_message_id_list_contains () |
| int | g_mime_message_id_list_index_of () |
| void | g_mime_message_id_list_clear () |
| const char * | g_mime_message_id_list_get_message_id () |
| void | g_mime_message_id_list_set_message_id () |
| char * | g_mime_message_id_list_to_string () |
An ordered collection of message identifiers. Mutations validate and normalize complete IDs; parsing recovers IDs from malformed header text.
GMimeMessageIdList *
g_mime_message_id_list_clone (GMimeMessageIdList *list);
GMimeMessageIdList * g_mime_message_id_list_parse (GMimeParserOptions *options,const char *text);
Recovers bracketed message identifiers, skipping unrelated text and malformed IDs. Parsing does not apply property-assignment validation.
options |
a GMimeParserOptions or |
[nullable] |
text |
a NUL-terminated raw References or In-Reply-To header value |
int g_mime_message_id_list_add (GMimeMessageIdList *list,const char *message_id);
Appends a normalized identifier. Invalid IDs are programming errors and leave the list unchanged.
void g_mime_message_id_list_add_range (GMimeMessageIdList *list,const char * const *message_ids,guint length);
Validates every identifier before appending any of them. Invalid entries are programming errors and leave the list unchanged. Input strings may alias the list. A successful call notifies the owner once, even for an empty range.
list |
||
message_ids |
identifiers to append. |
[array length=length][element-type utf8][nullable] |
length |
the number of identifiers |
void g_mime_message_id_list_insert (GMimeMessageIdList *list,int index,const char *message_id);
Inserts a validated, normalized identifier.
gboolean g_mime_message_id_list_remove (GMimeMessageIdList *list,const char *message_id);
gboolean g_mime_message_id_list_remove_at (GMimeMessageIdList *list,int index);
gboolean g_mime_message_id_list_contains (GMimeMessageIdList *list,const char *message_id);
int g_mime_message_id_list_index_of (GMimeMessageIdList *list,const char *message_id);
Does not normalize the search value.
void
g_mime_message_id_list_clear (GMimeMessageIdList *list);
Removes all identifiers and notifies the owner even when already empty.
const char * g_mime_message_id_list_get_message_id (GMimeMessageIdList *list,int index);
void g_mime_message_id_list_set_message_id (GMimeMessageIdList *list,int index,const char *message_id);
Replaces an identifier after validation. Assigning the same exact or normalized ID preserves the current entry and does not notify the owner.
char *
g_mime_message_id_list_to_string (GMimeMessageIdList *list);
Surrounds each identifier with angle brackets and separates them with one space, without folding or a trailing newline.