Camel.MimeFilterPreview

g Camel.MimeFilter Camel.MimeFilter Camel.MimeFilterPreview Camel.MimeFilterPreview Camel.MimeFilter->Camel.MimeFilterPreview GObject.Object GObject.Object GObject.Object->Camel.MimeFilter

Subclasses:

None

Methods

Inherited:

Camel.MimeFilter (8), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (limit)

get_limit ()

get_text ()

set_limit (limit)

Virtual Methods

Inherited:

Camel.MimeFilter (3), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Camel.MimeFilter

r

Class Details

class Camel.MimeFilterPreview(**kwargs)
Bases:

Camel.MimeFilter

Abstract:

No

Structure:

Camel.MimeFilterPreviewClass

classmethod new(limit)
Parameters:

limit (int) – a limit for the preview length

Returns:

a new Camel.MimeFilterPreview object

Return type:

Camel.MimeFilter

Creates a new Camel.MimeFilterPreview object. It filters passed-in data into a text suitable for a message content preview.

New in version 3.52.

get_limit()
Returns:

limit for the text length, in characters

Return type:

int

Returns set limit for the text length, in characters. Zero means unlimited length.

New in version 3.52.

get_text()
Returns:

read text until now or None, when nothing was read

Return type:

str or None

Returns read text until now.

New in version 3.52.

set_limit(limit)
Parameters:

limit (int) – a limit to set

Sets limit for the text length, in characters. Zero means unlimited length.

New in version 3.52.