GMimeMessageFeedbackReport

GMimeMessageFeedbackReport — Message feedback report parts

Functions

Types and Values

Description

A machine-readable message/feedback-report part with lazily parsed fields.

Functions

g_mime_message_feedback_report_new ()

GMimeMessageFeedbackReport *
g_mime_message_feedback_report_new (void);

Creates an empty message/feedback-report part. Fields and an empty content stream are created on first field access.


g_mime_message_feedback_report_get_fields ()

GMimeHeaderList *
g_mime_message_feedback_report_get_fields
                               (GMimeMessageFeedbackReport *report,
                                GError **error);

Lazily loads the first header block of the decoded content using default parser options. Reading fields preserves existing content. With no content, an empty header list and content stream are created.

List and contained-header changes replace the content using default format options without changing the part's transfer-encoding header. Once loaded, the same list is returned even if the inherited content is replaced.

Rewind, read and parse failures return NULL without caching a partial list and can be retried. Content without a backing stream reports GMIME_ERROR_INVALID_OPERATION. Stream positioning follows g_mime_content_open().

Parameters

report

a GMimeMessageFeedbackReport

 

error

return location for an error, or NULL

 

Returns

the cached fields, or NULL on error.

[transfer none][nullable]

Types and Values

GMimeMessageFeedbackReport

typedef struct _GMimeMessageFeedbackReport GMimeMessageFeedbackReport;

A message/feedback-report part with lazily parsed fields.

See Also

GMimePart, GMimeMultipartReport, GMimeHeaderList