| Top |
Replaces each byte except ASCII space, tab, CR and LF with lowercase ASCII 'x'. This includes NUL, vertical tab, form feed and every high-bit byte, without interpreting character encodings or normalizing newlines. Output has the same length as input and uses filter-owned storage; the caller's input and prespace are not modified.
Completion processes its supplied bytes normally without adding a terminator. The filter retains no conversion state, so it can be reused after completion. Copying creates a fresh filter with independent storage. This filter does not anonymize message headers or MIME structure on its own; byte counts and whitespace patterns are retained.
GMimeFilter *
g_mime_filter_anonymize_new (void);
Creates a filter that preserves ASCII space, tab, CR and LF and replaces every other byte with lowercase ASCII 'x'. Filtering and completion produce equally sized, filter-owned output without modifying input.