| Top |
Base64, quoted-printable, uuencode, yEnc, and pass-through implementations of GMimeEncoder and GMimeDecoder.
GMimeBase64Encoder *
g_mime_base64_encoder_new (void);
Uses LF line endings for compatibility with existing native callers.
GMimeBase64Encoder *
g_mime_base64_encoder_new_with_max_line_length
(guint max_line_length);
The effective length is capped at 76 and rounded down to a multiple of four. Uses LF line endings.
GMimeBase64Encoder * g_mime_base64_encoder_new_with_newline_format (GMimeNewLineFormat newline_format,guint max_line_length);
Creates a Base64 encoder with the selected line endings. The effective line length excludes the terminator, is capped at 76, and is rounded down to a multiple of four. Clone, reset and flush preserve the configuration.
GMimeQuotedPrintableEncoder *
g_mime_quoted_printable_encoder_new (void);
Uses LF line endings for compatibility with existing native callers.
GMimeQuotedPrintableEncoder *
g_mime_quoted_printable_encoder_new_with_max_line_length
(guint max_line_length);
The effective length is capped at 76. Uses LF line endings.
GMimeQuotedPrintableEncoder * g_mime_quoted_printable_encoder_new_with_newline_format (GMimeNewLineFormat newline_format,guint max_line_length);
Creates a quoted-printable encoder with the selected line endings for both hard and soft breaks. The line length excludes the terminator and is capped at 76. Bare CR is still encoded as content. Clone, reset and flush preserve the configuration.
GMimeQuotedPrintableDecoder *
g_mime_quoted_printable_decoder_new (gboolean rfc2047);
GMimeUUEncoder *
g_mime_uu_encoder_new (void);
Emits payload lines and a zero-length terminating line, not begin/end markers. Uses LF line endings for compatibility with existing native callers.
GMimeUUEncoder *
g_mime_uu_encoder_new_with_newline_format
(GMimeNewLineFormat newline_format);
Creates a uuencoder using the selected line endings for payload lines and the zero-length terminating line. It does not emit begin/end markers. Clone, reset and flush preserve the configuration.
GMimeUUDecoder *
g_mime_uu_decoder_new (gboolean payload_only);
A zero-length payload line ends decoding. Reset restores the initial mode.
GMimePassThroughEncoder *
g_mime_pass_through_encoder_new (GMimeContentEncoding encoding);
GMimePassThroughDecoder *
g_mime_pass_through_decoder_new (GMimeContentEncoding encoding);
GMimeYencEncoder *
g_mime_yenc_encoder_new (void);
Emits payload only, without =ybegin, =ypart, or =yend lines.
GMimeYencEncoder *
g_mime_yenc_encoder_new_with_max_line_length
(guint max_line_length);
An escape pair is never split, so a line can exceed the limit by one byte.
GMimeYencEncoder * g_mime_yenc_encoder_new_with_newline_format (GMimeNewLineFormat newline_format,guint max_line_length);
Creates a payload encoder. An escape pair may extend a line by one byte. The constructors without a newline argument retain their LF default.
guint32
g_mime_yenc_encoder_get_checksum (GMimeYencEncoder *encoder);
The running CRC-32 starts at 0xffffffff. Complement the returned value to obtain the conventional final CRC-32. Flush retains the checksum; only reset restores the initial value.
GMimeYencDecoder *
g_mime_yenc_decoder_new (gboolean payload_only);
Full-block decoding skips the =ybegin and optional =ypart header lines. A line beginning with =y ends decoding until reset. Metadata, sizes, and advertised checksums are not validated; callers can compare the computed checksum themselves.
guint32
g_mime_yenc_decoder_get_checksum (GMimeYencDecoder *decoder);
The running CRC-32 starts at 0xffffffff. Complement the returned value to obtain the conventional final CRC-32. Reset restores the initial value.
typedef struct _GMimeBase64Encoder GMimeBase64Encoder;
Incremental Base64 encoder with MIME line wrapping.
typedef struct _GMimeBase64Decoder GMimeBase64Decoder;
Incremental Base64 decoder which ignores non-alphabet bytes.
typedef struct _GMimeQuotedPrintableEncoder GMimeQuotedPrintableEncoder;
Incremental quoted-printable encoder with MIME line wrapping.
typedef struct _GMimeQuotedPrintableDecoder GMimeQuotedPrintableDecoder;
Incremental body or RFC 2047 quoted-printable decoder.
typedef struct _GMimeUUDecoder GMimeUUDecoder;
Incremental full-block or payload-only uudecoder.
typedef struct _GMimePassThroughEncoder GMimePassThroughEncoder;
An encoder which copies bytes unchanged.
typedef struct _GMimePassThroughDecoder GMimePassThroughDecoder;
A decoder which copies bytes unchanged.
typedef struct _GMimeYencEncoder GMimeYencEncoder;
Incremental yEnc payload encoder with a running CRC-32 checksum. Flush ends the current line but retains the checksum until reset.