(Difference between revisions)
|Line 24:||Line 24:|
Revision as of 12:22, 26 October 2011
Binary is the simplest of Mailtils filters. In both decode and encode modes, the filter copies its input to output verbatim.
This filter is also available under the alias 8bit.
The binary filter takes no arguments.
The following objects, declared in the header mailutils/filter.h, describe this filter:
extern mu_filter_record_t mu_binary_filter; extern mu_filter_record_t mu_bit8_filter;
An example of how to create a binary filter stream:
int rc; /* Return code */ mu_stream_t flt; /* Filter stream */ mu_stream_t input; /* Input stream */ initialize_input_stream (&stream); rc = mu_filter_stream_create (&flt, input, "8bit", MU_FILTER_DECODE, MU_STREAM_READ);