CamelMimeFilterEnriched

CamelMimeFilterEnriched

Synopsis

                    CamelMimeFilterEnriched;
#define             CAMEL_MIME_FILTER_ENRICHED_IS_RICHTEXT
CamelMimeFilter*    camel_mime_filter_enriched_new      (guint32 flags);
char*               camel_enriched_to_html              (const char *in,
                                                         guint32 flags);

Description

Details

CamelMimeFilterEnriched

typedef struct {
	CamelMimeFilter parent_object;

	guint32 flags;
	int nofill;
} CamelMimeFilterEnriched;


CAMEL_MIME_FILTER_ENRICHED_IS_RICHTEXT

#define CAMEL_MIME_FILTER_ENRICHED_IS_RICHTEXT  (1 << 0)


camel_mime_filter_enriched_new ()

CamelMimeFilter*    camel_mime_filter_enriched_new      (guint32 flags);

Create a new CamelMimeFilterEnriched object to convert input text streams from text/plain into text/enriched or text/richtext.

flags :

bitwise set of flags to specify filter behaviour

Returns :

a new CamelMimeFilterEnriched object

camel_enriched_to_html ()

char*               camel_enriched_to_html              (const char *in,
                                                         guint32 flags);

Convert in from text/plain into text/enriched or text/richtext based on flags.

in :

input textual string

flags :

flags specifying filter behaviour

Returns :

a newly allocated string containing the enriched or richtext version of in.