GMimeMultipartReport

GMimeMultipartReport — Mail report containers

Functions

Types and Values

Description

A multipart/report container with a report-type Content-Type parameter. The report type is normally the subtype of the second child, but is managed independently of the children.

Functions

g_mime_multipart_report_new ()

GMimeMultipartReport *
g_mime_multipart_report_new (const char *report_type);

Creates an empty multipart/report container with the specified report type. Leading and trailing ASCII linear whitespace is removed from report_type . Empty values are allowed; NULL and invalid UTF-8 are programming errors.

Parameters

report_type

a UTF-8 report type

 

g_mime_multipart_report_get_report_type ()

const char *
g_mime_multipart_report_get_report_type
                               (GMimeMultipartReport *report);

Gets the report-type parameter without modifying the Content-Type header.

Parameters

report

a GMimeMultipartReport

 

Returns

the report type, or NULL if absent.

[transfer none][nullable]


g_mime_multipart_report_set_report_type ()

void
g_mime_multipart_report_set_report_type
                               (GMimeMultipartReport *report,
                                const char *report_type);

Sets the report-type parameter after removing leading and trailing ASCII linear whitespace. Case and internal whitespace are preserved. Empty values are allowed; NULL and invalid UTF-8 are programming errors. Assigning an equivalent value preserves the raw header and parameter metadata.

Parameters

report

a GMimeMultipartReport

 

report_type

a UTF-8 report type

 

Types and Values

GMimeMultipartReport

typedef struct _GMimeMultipartReport GMimeMultipartReport;

A multipart/report container for mail reports.

See Also

GMimeMultipart