Difference between revisions of "Quoted-printable"

From Mailutils
Jump to navigationJump to search
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
These filters are described by the following objects (declared <tt>mailutils/filter.h</tt>):
 
These filters are described by the following objects (declared <tt>mailutils/filter.h</tt>):
  
<source lang="C">
+
<syntaxhighlight lang="C">
 
extern mu_filter_record_t mu_qp_filter;
 
extern mu_filter_record_t mu_qp_filter;
 
extern mu_filter_record_t mu_rfc_2047_Q_filter;
 
extern mu_filter_record_t mu_rfc_2047_Q_filter;
</source>
+
</syntaxhighlight>
 
   
 
   
 
The following example illustrates how to create a read-only filter for encoding the input stream to ''quoted-printable'' form:
 
The following example illustrates how to create a read-only filter for encoding the input stream to ''quoted-printable'' form:
  
<source lang="C">
+
<syntaxhighlight lang="C">
 
   int rc;          /* Return code */
 
   int rc;          /* Return code */
 
   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>
+
</syntaxhighlight>
  
 
== See also ==
 
== See also ==

Latest revision as of 13:26, 16 October 2023

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