Quoted-printable

From Mailutils

(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 14: Line 14:
   mu_stream_t flt; /* Filter stream */
   mu_stream_t flt; /* Filter stream */
-
   rc = mu_filter_stream_create (&flt, input, "quoted-printable", MU_FILTER_ENCODE, MU_STREAM_READ);
+
   rc = mu_filter_create (&flt, input, "quoted-printable", MU_FILTER_ENCODE, MU_STREAM_READ);
</source>
</source>

Latest revision as of 19:10, 5 September 2015

The quoted-printable and Q filters encode or decode the input using the quoted-printable encoding.

These filters are described by the following objects (declared mailutils/filter.h):

extern mu_filter_record_t mu_qp_filter;
extern mu_filter_record_t mu_rfc_2047_Q_filter;

The following example illustrates how to create a read-only filter for encoding the input stream to quoted-printable form:

  int rc;          /* Return code */
  mu_stream_t flt; /* Filter stream */
 
  rc = mu_filter_create (&flt, input, "quoted-printable", MU_FILTER_ENCODE, MU_STREAM_READ);

See also

Personal tools