From Mailutils
(Redirected from 8bit)
Jump to navigationJump to search

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 (&input);
  rc = mu_filter_create (&flt, input, "8bit", MU_FILTER_DECODE, MU_STREAM_READ);