Enums

Details

class GMime.CertificateTrust(value)

Bases: GLib.Enum

The trust value of a certificate.

NONE = 0

No trust assigned.

NEVER = 1

Never trust this certificate.

UNDEFINED = 2

Undefined trust for this certificate.

MARGINAL = 3

Trust this certificate maginally.

FULLY = 4

Trust this certificate fully.

ULTIMATE = 5

Trust this certificate ultimately.

class GMime.CipherAlgo(value)

Bases: GLib.Enum

A cipher algorithm.

DEFAULT = 0

The default (or unknown) cipher.

IDEA = 1

The IDEA cipher.

TWOFISH = 10

The Twofish cipher.

CAMELLIA128 = 11

The Camellia-128 cipher.

CAMELLIA192 = 12

The Camellia-192 cipher.

CAMELLIA256 = 13

The Camellia-256 cipher.

3DES = 2
_3DES = 2

The 3DES cipher.

CAST5 = 3

The CAST5 cipher.

BLOWFISH = 4

The Blowfish cipher.

AES = 7

The AES (aka RIJANDALE) cipher.

AES192 = 8

The AES-192 cipher.

AES256 = 9

The AES-256 cipher.

class GMime.ContentEncoding(value)

Bases: GLib.Enum

A Content-Transfer-Encoding enumeration.

DEFAULT = 0

Default transfer encoding.

7BIT = 1
_7BIT = 1

7bit text transfer encoding.

8BIT = 2
_8BIT = 2

8bit text transfer encoding.

BINARY = 3

Binary transfer encoding.

BASE64 = 4

Base64 transfer encoding.

QUOTEDPRINTABLE = 5

Quoted-printable transfer encoding.

UUENCODE = 6

Uuencode transfer encoding.

class GMime.DigestAlgo(value)

Bases: GLib.Enum

A hash algorithm.

DEFAULT = 0

The default hash algorithm.

MD5 = 1

The MD5 hash algorithm.

SHA512 = 10

The SHA-512 hash algorithm.

SHA224 = 11

The SHA-224 hash algorithm.

SHA1 = 2

The SHA-1 hash algorithm.

RIPEMD160 = 3

The RIPEMD-160 hash algorithm.

MD4 = 301

The MD4 hash algorithm.

MD2 = 5

The MD2 hash algorithm.

TIGER192 = 6

The TIGER-192 hash algorithm.

HAVAL5160 = 7

The HAVAL-5-160 hash algorithm.

SHA256 = 8

The SHA-256 hash algorithm.

SHA384 = 9

The SHA-384 hash algorithm.

class GMime.EncodingConstraint(value)

Bases: GLib.Enum

Used with functions like GMime.FilterBest.encoding() and GMime.Object.encode() as the ‘constraint’ argument. These values provide a means of letting the filter know what the encoding constraints are for the stream.

7BIT = 0
_7BIT = 0

The stream data must fit within the 7bit ASCII range.

8BIT = 1
_8BIT = 1

The stream data may have bytes with the high bit set, but no null bytes.

BINARY = 2

The stream may contain any binary data.

class GMime.FilterFromMode(value)

Bases: GLib.Enum

The mode for a GMime.FilterFrom filter.

DEFAULT = 0

Default mode.

ESCAPE = 0

Escape ‘From ‘ lines with a ‘>’

ARMOR = 1

QP-Encode ‘From ‘ lines

class GMime.FilterGZipMode(value)

Bases: GLib.Enum

The mode for the GMime.FilterGZip filter.

ZIP = 0

Compress (zip) mode.

UNZIP = 1

Uncompress (unzip) mode.

class GMime.PubKeyAlgo(value)

Bases: GLib.Enum

A public-key algorithm.

DEFAULT = 0

The default public-key algorithm.

RSA = 1

The RSA algorithm.

ELG_E = 16

An encryption-only ElGamal algorithm.

DSA = 17

The DSA algorithm.

RSA_E = 2

An encryption-only RSA algorithm.

ELG = 20

The ElGamal algorithm.

RSA_S = 3

A signature-only RSA algorithm.

class GMime.RecipientType(value)

Bases: GLib.Enum

A message recipient type.

TO = 0

Represents the recipients in the To: header.

CC = 1

Represents the recipients in the Cc: header.

BCC = 2

Represents the recipients in the Bcc: header.

class GMime.SeekWhence(value)

Bases: GLib.Enum

Relative seek position.

SET = 0

Seek relative to the beginning of the stream.

CUR = 1

Seek relative to the current position in the stream.

END = 2

Seek relative to the end of the stream.

class GMime.SignatureStatus(value)

Bases: GLib.Enum

A value representing the signature status for a particular GMime.Signature.

GOOD = 0

Good signature.

ERROR = 1

An error occurred.

BAD = 2

Bad signature.

class GMime.StreamBufferMode(value)

Bases: GLib.Enum

The buffering mode for a GMime.StreamBuffer stream.

CACHE_READ = 0

Cache all reads.

BLOCK_READ = 1

Read in 4k blocks.

BLOCK_WRITE = 2

Write in 4k blocks.