| Top |
Escapes exact, case-sensitive "From " markers at the beginning of input or immediately after LF. Escape mode inserts ">", while armor mode replaces only the leading F with "=46". Bare CR is not a line boundary, and existing ">From " lines are left unchanged.
Incomplete marker prefixes are buffered across calls. Only exact prefixes are held back, and completion emits them unchanged if the marker remains incomplete. Reset discards pending input and restores beginning-of-line state; copying retains the mode but creates a fresh filter.
Armoring is not a complete quoted-printable encoder. Apply it to quoted-printable content and label the containing part accordingly.
GMimeFilter *
g_mime_filter_from_new (GMimeFilterFromMode mode);
Creates a new GMimeFilterFrom filter. If mode
is
GMIME_FILTER_FROM_MODE_ARMOR, the from-filter will encode from
lines by encoding only the leading F as "=46", resulting in "=46rom ".
Using the GMIME_FILTER_FROM_MODE_DEFAULT or
GMIME_FILTER_FROM_MODE_ESCAPE mode (they are the same), from lines
will be escaped to ">From ".
Only exact markers at the beginning of input or after LF are escaped. Partial prefixes span input buffers and are emitted unchanged on completion if they do not become a complete marker.
Note: ARMOR is not a complete quoted-printable encoder. Apply it after quoted-printable encoding, and set the containing part's transfer encoding to GMIME_CONTENT_ENCODING_QUOTEDPRINTABLE. Do not re-encode the inserted "=46" escape.
typedef struct _GMimeFilterFrom GMimeFilterFrom;
A filter for armoring or escaping exact "From " markers at the beginning of input or after LF. Incomplete prefixes span calls and are emitted unchanged on completion. Bare CR does not begin a new line.