| Top |
Reassembles flowed paragraphs, removes space stuffing, and honors quote-depth transitions and optional delsp processing. Generated paragraph separators use LF regardless of the host platform.
GMimeTextConverter *
g_mime_flowed_to_html_new (void);
Creates an RFC 3676 format=flowed to HTML converter. By default, delsp processing is disabled, output includes html and body wrappers, and headers and footers are interpreted as text.
gboolean
g_mime_flowed_to_html_get_delete_space
(GMimeFlowedToHtml *converter);
Gets whether the trailing space marking a flowed line is deleted when joining it to the next line.
void g_mime_flowed_to_html_set_delete_space (GMimeFlowedToHtml *converter,gboolean value);
Selects RFC 3676 delsp processing. Set this to match the input MIME part's
delsp parameter; FALSE preserves the joining space. This setting cannot
be changed during conversion.
gboolean
g_mime_flowed_to_html_get_output_html_fragment
(GMimeFlowedToHtml *converter);
Gets whether the generated html and body wrappers are omitted.
void g_mime_flowed_to_html_set_output_html_fragment (GMimeFlowedToHtml *converter,gboolean value);
Selects fragment or document output. Headers and footers are included in either mode. This setting cannot be changed during conversion.
GMimeHeaderFooterFormat
g_mime_flowed_to_html_get_header_format
(GMimeFlowedToHtml *converter);
Gets how the configured header is interpreted.
void g_mime_flowed_to_html_set_header_format (GMimeFlowedToHtml *converter,GMimeHeaderFooterFormat value);
Selects how the header set by g_mime_text_converter_set_header() is written.
Text is converted as plain text, not flowed text, without invoking the
body's tag callback. HTML is copied verbatim and is not sanitized.
This setting cannot be changed during conversion.
GMimeHeaderFooterFormat
g_mime_flowed_to_html_get_footer_format
(GMimeFlowedToHtml *converter);
Gets how the configured footer is interpreted.
void g_mime_flowed_to_html_set_footer_format (GMimeFlowedToHtml *converter,GMimeHeaderFooterFormat value);
Selects how the footer set by g_mime_text_converter_set_footer() is written.
Text is converted as plain text, not flowed text, without invoking the
body's tag callback. HTML is copied verbatim and is not sanitized.
This setting cannot be changed during conversion.
GMimeHtmlTagCallback g_mime_flowed_to_html_get_html_tag_callback (GMimeFlowedToHtml *converter,gpointer *user_data);
Gets the registered HTML tag callback. This function is C-only because introspection does not support returning callback function pointers.
[skip]
converter |
||
user_data |
return location for the callback's borrowed user data. |
[out][optional][nullable][transfer none] |
void g_mime_flowed_to_html_set_html_tag_callback (GMimeFlowedToHtml *converter,GMimeHtmlTagCallback callback,gpointer user_data,GDestroyNotify destroy_notify);
Sets the callback for tags generated from the body, or restores default
tag output if callback
is NULL. The callback must explicitly write any
desired tag; end-tag callbacks are opt-in through GMimeHtmlTagContext.
Wrappers, headers and footers do not invoke the callback.
The previous destroy notifier is called when replacing the registration.
destroy_notify
is called when this registration is replaced or the
converter is finalized. The callback cannot be changed during conversion.