Platforms: Unix, MacOS, Windows
Module author: René Köcher <shirk@bitspin.org>
FUCore contains the generic code and utility methods shared by both synfu.postfilter.PostFilter and synfu.reactor.Reactor.
All of this methods are private and should only be called by subclasses.
Log a message using syslog as well as sys.stdout.
Parameters: |
|
---|---|
Returns: | None |
Check if the passed message is a CANCEL message.
This will try to match FUCore.CANCEL_EXP against all Control: headers contained in message.
Parameters: | message – A email.message object. |
---|---|
Returns: | True or False |
Filter message for a valid list tag.
This method will scan the passed in messages headers looking for a hint to the used list-tag.
The following headers will be checked (in order):
- X-SynFU-Tags (explicit List-Tags supplied by synfu-news2mail)
- [X-]List-Post
- [X-]List-Id
- [X-]AF-Envelope-to
If any of these is found it will be converted into a regular expression which can be used to remove the List-Tag from arbitrary headers.
Parameters: |
|
---|---|
Returns: | Either a re.SRE_PATTERN or a string |
Filter a list of headers according to the global settings.
This method will filter the passed in header list by matching a series of expressions and filters to it:
Parameters: |
|
---|---|
Returns: | The filtered header list. |