| Top |
void (*GMimeTnefComplianceLogger) (const GMimeTnefComplianceIssue *issue,gpointer user_data);
Receives TNEF diagnostics. Callbacks must not reenter the reader.
issue |
a diagnostic valid during this callback. |
[transfer none] |
user_data |
callback data. |
[closure][nullable] |
GMimeTnefOptions *
g_mime_tnef_options_new (void);
Creates default TNEF options.
GMimeTnefOptions *
g_mime_tnef_options_ref (GMimeTnefOptions *options);
References the options.
void
g_mime_tnef_options_unref (GMimeTnefOptions *options);
Releases a reference to the options.
GMimeTnefOptions *
g_mime_tnef_options_clone (const GMimeTnefOptions *options);
Copies the options.
guint
g_mime_tnef_options_get_max_nesting_depth
(const GMimeTnefOptions *options);
Gets the maximum embedded-message depth; zero disallows nesting. Default: 32.
void g_mime_tnef_options_set_max_nesting_depth (GMimeTnefOptions *options,guint maximum);
Sets the maximum embedded-message depth; zero disallows nesting.
guint
g_mime_tnef_options_get_max_property_value_length
(const GMimeTnefOptions *options);
Gets the maximum bytes materialized for one value. Default: 32 * 1024 * 1024.
void g_mime_tnef_options_set_max_property_value_length (GMimeTnefOptions *options,guint maximum);
Sets the maximum bytes materialized for one value.
guint64
g_mime_tnef_options_get_max_total_data_bytes
(const GMimeTnefOptions *options);
Gets the cumulative materialization budget shared with embedded readers. Default: 64 * 1024 * 1024.
void g_mime_tnef_options_set_max_total_data_bytes (GMimeTnefOptions *options,guint64 maximum);
Sets the cumulative materialization budget shared with embedded readers.
guint
g_mime_tnef_options_get_max_attachments
(const GMimeTnefOptions *options);
void g_mime_tnef_options_set_max_attachments (GMimeTnefOptions *options,guint maximum);
Limits attachment materialization. Zero skips all attachments.
int
g_mime_tnef_options_get_default_codepage
(const GMimeTnefOptions *options);
Gets the default codepage; zero selects Windows-1252. Default: 0.
void g_mime_tnef_options_set_default_codepage (GMimeTnefOptions *options,int codepage);
Sets the default codepage; zero selects Windows-1252.
GMimeTnefComplianceOptions *
g_mime_tnef_compliance_options_new (void);
Creates default TNEF options.
GMimeTnefComplianceOptions *
g_mime_tnef_compliance_options_ref (GMimeTnefComplianceOptions *options);
References the options.
void
g_mime_tnef_compliance_options_unref (GMimeTnefComplianceOptions *options);
Releases a reference to the options.
GMimeTnefComplianceOptions *
g_mime_tnef_compliance_options_clone (const GMimeTnefComplianceOptions *options);
Copies the options.
guint
g_mime_tnef_compliance_options_get_max_issues_per_violation
(const GMimeTnefComplianceOptions *options);
Gets the per-violation reporting cap; zero means unlimited. Default: 0.
void g_mime_tnef_compliance_options_set_max_issues_per_violation (GMimeTnefComplianceOptions *options,guint maximum);
Sets the per-violation reporting cap; zero means unlimited.
const char *
g_mime_tnef_compliance_violation_get_description
(GMimeTnefComplianceViolation violation);
Gets the diagnostic description.
const char *
g_mime_tnef_compliance_violation_get_remarks
(GMimeTnefComplianceViolation violation);
Gets the diagnostic remarks.
GMimeComplianceSeverity
g_mime_tnef_compliance_violation_get_severity
(GMimeTnefComplianceViolation violation);
Gets the diagnostic severity.
GMimeComplianceCategories
g_mime_tnef_compliance_violation_get_categories
(GMimeTnefComplianceViolation violation);
Gets the diagnostic categories.
typedef struct _GMimeTnefOptions GMimeTnefOptions;
Reference-counted limits and default encoding for low-level TNEF reading. Readers copy these options at construction. Materialization limits do not restrict streaming values.
typedef struct _GMimeTnefComplianceOptions GMimeTnefComplianceOptions;
Reference-counted diagnostic reporting limits.
typedef struct {
GMimeTnefComplianceViolation violation;
GMimeComplianceSeverity severity;
GMimeComplianceCategories categories;
gint64 stream_offset;
guint depth;
GMimeTnefAttributeTag attribute_tag;
GMimeTnefPropertyTag property_tag;
const char *description;
} GMimeTnefComplianceIssue;
A diagnostic borrowed for the duration of a compliance callback.
GMimeTnefComplianceViolation |
the reported violation |
|
GMimeComplianceSeverity |
diagnostic severity |
|
GMimeComplianceCategories |
diagnostic categories |
|
byte offset relative to the outermost TNEF stream |
||
embedded message depth |
||
GMimeTnefAttributeTag |
associated attribute, or zero |
|
GMimeTnefPropertyTag |
associated property, or zero |
|
borrowed diagnostic description. |
[transfer none] |