GMime.Filter¶
- Subclasses:
GMime.FilterBasic
,GMime.FilterBest
,GMime.FilterCharset
,GMime.FilterChecksum
,GMime.FilterDos2Unix
,GMime.FilterEnriched
,GMime.FilterFrom
,GMime.FilterGZip
,GMime.FilterHTML
,GMime.FilterOpenPGP
,GMime.FilterSmtpData
,GMime.FilterStrip
,GMime.FilterUnix2Dos
,GMime.FilterWindows
,GMime.FilterYenc
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
backbuf |
r |
||
backlen |
r |
||
backsize |
r |
||
outbuf |
r |
||
outpre |
r |
||
outptr |
r |
||
outreal |
r |
||
outsize |
r |
||
parent_object |
r |
parent |
|
priv |
r |
private state data |
Class Details¶
- class GMime.Filter(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Base class for filters used by
GMime.StreamFilter
.- backup(data)¶
- Parameters:
data (
bytes
) – data to backup
Sets number of bytes backed up on the input, new calls replace previous ones
- complete(inbuf, prespace)¶
- Parameters:
- Returns:
- outbuf:
pointer to output buffer
- outprespace:
pointer to output prespace buffer length
- Return type:
Completes the filtering.
- copy()¶
- Returns:
a duplicate of self.
- Return type:
Copies self into a new
GMime.Filter
object.
- filter(inbuf, prespace)¶
- Parameters:
- Returns:
- outbuf:
pointer to output buffer
- outprespace:
pointer to output prespace buffer length
- Return type:
Filters the input data and writes it to out.
- reset()¶
Resets the filter.
- set_size(size, keep)¶
- Parameters:
Ensure this much size is available for filter output (if required)
- do_complete(inbuf, prespace) virtual¶
- Parameters:
- Returns:
- outbuf:
pointer to output buffer
- outprespace:
pointer to output prespace buffer length
- Return type:
Completes the filtering.
- do_copy() virtual¶
- Returns:
a duplicate of filter.
- Return type:
Copies filter into a new
GMime.Filter
object.
- do_filter(inbuf, prespace) virtual¶
- Parameters:
- Returns:
- outbuf:
pointer to output buffer
- outprespace:
pointer to output prespace buffer length
- Return type:
Filters the input data and writes it to out.
- do_reset() virtual¶
Resets the filter.