GMimeMessageDispositionNotification

GMimeMessageDispositionNotification — Message disposition notification parts

Functions

Types and Values

Description

A machine-readable disposition notification with a lazily parsed header list. Both message/disposition-notification and message/global-disposition-notification use this class.

Functions

g_mime_message_disposition_notification_new ()

GMimeMessageDispositionNotification *
g_mime_message_disposition_notification_new
                               (void);

Creates an empty message/disposition-notification part. Notification fields and an empty content stream are created on first field access.


g_mime_message_disposition_notification_get_fields ()

GMimeHeaderList *
g_mime_message_disposition_notification_get_fields
                               (GMimeMessageDispositionNotification *notification,
                                GError **error);

Lazily loads the first header block of the decoded content using default parser options. Existing content is not rewritten merely by reading fields. With no content, an empty header list and content stream are created.

List changes 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; subsequent list edits replace that content again.

Rewind, read and parse errors are propagated without caching a partial list. Content without a backing stream reports GMIME_ERROR_INVALID_OPERATION. Stream positioning follows g_mime_content_open().

Parameters

notification

a GMimeMessageDispositionNotification

 

error

return location for an error, or NULL

 

Returns

the notification fields, or NULL on error.

[transfer none][nullable]

Types and Values

GMimeMessageDispositionNotification

typedef struct _GMimeMessageDispositionNotification GMimeMessageDispositionNotification;

A message/disposition-notification part with lazily parsed fields.

See Also

GMimePart, GMimeMultipartReport, GMimeHeaderList