Camel.MessageContentInfo

Fields

Name

Type

Access

Description

childs

Camel.MessageContentInfo

r/w

description

str

r/w

disposition

Camel.ContentDisposition

r/w

encoding

str

r/w

id

str

r/w

next

Camel.MessageContentInfo

r/w

parent

Camel.MessageContentInfo

r/w

size

int

r/w

type

Camel.ContentType

r/w

Methods

class

new ()

class

new_from_headers (headers)

class

new_from_message (mime_part)

class

new_from_parser (parser)

copy ()

dump (depth)

free ()

traverse (func, *user_data)

Details

class Camel.MessageContentInfo
classmethod new()
Returns:

a newly allocated Camel.MessageContentInfo

Return type:

Camel.MessageContentInfo

Allocate a new Camel.MessageContentInfo.

classmethod new_from_headers(headers)
Parameters:

headers (Camel.NameValueArray) –

Return type:

Camel.MessageContentInfo

classmethod new_from_message(mime_part)
Parameters:

mime_part (Camel.MimePart) –

Return type:

Camel.MessageContentInfo

classmethod new_from_parser(parser)
Parameters:

parser (Camel.MimeParser) –

Return type:

Camel.MessageContentInfo

copy()
Returns:

a copy of self, or None, if self was None

Return type:

Camel.MessageContentInfo or None

New in version 3.24.

dump(depth)
Parameters:

depth (int) –

free()

Recursively frees the content info self, and all associated memory.

traverse(func, *user_data)
Parameters:
Returns:

False on error or when the func returned False, otherwise True

Return type:

bool

Calls the func for each Camel.MessageContentInfo, including the top one. The func can return True to continue processing or False to stop it.