filter_add


Description:

[ Version ( since = "2.22" ) ]
public int filter_add (MimeFilter mf)

Add a filter that will be applied to any body content before it is passed to the caller.

Filters may be pipelined to perform multi-pass operations on the content, and are applied in the order they were added.

Note that filters are only applied to the body content of messages, and once a filter has been set, all content returned by a step with a state of CAMEL_MIME_PARSER_STATE_BODY will have passed through the filter.

Parameters:

this

a MimeParser

mf

a MimeFilter

Returns:

An id that may be passed to filter_remove to remove the filter, or -1 if the operation failed.