GMime.FilterFrom

g GMime.Filter GMime.Filter GMime.FilterFrom GMime.FilterFrom GMime.Filter->GMime.FilterFrom GObject.Object GObject.Object GObject.Object->GMime.Filter

Subclasses:

None

Methods

Inherited:

GMime.Filter (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (mode)

Virtual Methods

Inherited:

GMime.Filter (4), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

midline

bool

r

True if in the middle of a line

mode

GMime.FilterFromMode

r

GMime.FilterFromMode

parent_object

GMime.Filter

r

parent GMime.Filter

Class Details

class GMime.FilterFrom(**kwargs)
Bases:

GMime.Filter

Abstract:

No

Structure:

GMime.FilterFromClass

A filter for armoring or escaping lines beginning with “From “.

classmethod new(mode)
Parameters:

mode (GMime.FilterFromMode) – filter mode

Returns:

a new from filter with mode mode.

Return type:

GMime.Filter

Creates a new GMime.FilterFrom filter. If mode is GMime.FilterFromMode.ARMOR, the from-filter will encode from lines using the quoted-printable encoding resulting in “=46rom “. Using the GMime.FilterFromMode.DEFAULT or GMime.FilterFromMode.ESCAPE mode (they are the same), from lines will be escaped to “>From “.

Note: If you plan on using a from-filter in mode ARMOR, you should remember to also use a GMime.FilterBasic filter with an encoding of GMime.ContentEncoding.QUOTEDPRINTABLE.