TNEF properties

TNEF properties — Inspect materialized MAPI properties and property sets

Functions

Types and Values

Description

Functions

g_mime_tnef_property_ref ()

GMimeTnefProperty *
g_mime_tnef_property_ref (GMimeTnefProperty *property);

References the snapshot.

Parameters

property

a property snapshot

 

Returns

property .

[transfer full]


g_mime_tnef_property_unref ()

void
g_mime_tnef_property_unref (GMimeTnefProperty *property);

Releases a reference.

Parameters

property

a property snapshot

 

g_mime_tnef_property_get_tag ()

GMimeTnefPropertyTag
g_mime_tnef_property_get_tag (const GMimeTnefProperty *property);

Gets the original tag. Named identifiers are local to the source stream.

Parameters

property

a property snapshot

 

Returns

the property tag


g_mime_tnef_property_get_name ()

GMimeTnefNameId *
g_mime_tnef_property_get_name (const GMimeTnefProperty *property);

Gets the named-property identity.

Parameters

property

a property snapshot

 

Returns

the identity, or NULL.

[transfer none][nullable]


g_mime_tnef_property_get_count ()

guint
g_mime_tnef_property_get_count (const GMimeTnefProperty *property);

Gets the number of materialized values. Malformed or size-limited properties may have no values.

Parameters

property

a property snapshot

 

Returns

the value count


g_mime_tnef_property_get_value ()

const GValue *
g_mime_tnef_property_get_value (const GMimeTnefProperty *property,
                                guint index);

Gets a value without consuming it. Uses the property reader's native GLib representations, including exact scaled-integer Currency values.

Parameters

property

a property snapshot

 

index

a zero-based value index

 

Returns

the immutable value.

[transfer none]


g_mime_tnef_property_set_ref ()

GMimeTnefPropertySet *
g_mime_tnef_property_set_ref (GMimeTnefPropertySet *properties);

References the set.

Parameters

properties

a property set

 

Returns

properties .

[transfer full]


g_mime_tnef_property_set_unref ()

void
g_mime_tnef_property_set_unref (GMimeTnefPropertySet *properties);

Releases a reference.

Parameters

properties

a property set

 

g_mime_tnef_property_set_get_count ()

guint
g_mime_tnef_property_set_get_count (const GMimeTnefPropertySet *properties);

Gets the number of properties, including duplicates.

Parameters

properties

a property set

 

Returns

the property count


g_mime_tnef_property_set_get_property ()

GMimeTnefProperty *
g_mime_tnef_property_set_get_property (const GMimeTnefPropertySet *properties,
                                       guint index);

Gets a property in original wire order.

Parameters

properties

a property set

 

index

a zero-based property index

 

Returns

the property.

[transfer none]


g_mime_tnef_property_set_lookup ()

GMimeTnefProperty *
g_mime_tnef_property_set_lookup (const GMimeTnefPropertySet *properties,
                                 GMimeTnefPropertyTag tag);

Finds the first property with the same identifier, regardless of type. Use g_mime_tnef_property_set_lookup_name() for named identities, which are stable across streams.

Parameters

properties

a property set

 

tag

the requested tag

 

Returns

the property, or NULL if absent.

[transfer none][nullable]


g_mime_tnef_property_set_lookup_name ()

GMimeTnefProperty *
g_mime_tnef_property_set_lookup_name (const GMimeTnefPropertySet *properties,
                                      const GMimeTnefNameId *name);

Finds the first property with this named identity.

Parameters

properties

a property set

 

name

the requested identity

 

Returns

the property, or NULL if absent.

[transfer none][nullable]

Types and Values

GMimeTnefProperty

typedef struct _GMimeTnefProperty GMimeTnefProperty;

An immutable snapshot of a MAPI property's tag, name and native GLib values. Values remain valid after the input reader advances or is freed. Binary data is materialized; use value streams for large attachments.


GMimeTnefPropertySet

typedef struct _GMimeTnefPropertySet GMimeTnefPropertySet;

An immutable ordered collection of MAPI properties. Duplicates are preserved; lookup returns the first matching identifier or name.