Previous topic

synfu.reactor.Reactor – Mailman signature and header filter

Next topic

synfu.fucore.FUCore – Common utility and helper methods

This Page

synfu.postfilter.PostFilter – Mail2News and back again

Platforms: Unix, MacOS, Windows

Module author: René Köcher <shirk@bitspin.org>

class synfu.postfilter.PostFilter(mode=None)

PostFilter implements two drop-in-replacements for INN‘s mail2news and news2mail scripts.

mail2news(fobj=<open file '<stdin>', mode 'r' at 0x7ff5d3fe4150>)

This method provides a drop-in-replacement to news2mail.pl used by INN. It expects the same data on sys.stdin and uses the same config entry as news2mail.pl.

Note

There is no need to import and call this method directly. SynFu provides the wrapper script synfu-mail2news (see SynFu.Mail2News) for this job.

news2mail(fobj=<open file '<stdin>', mode 'r' at 0x7ff5d3fe4150>)

This method provides a drop-in-replacement to news2mail.pl used by INN. It expects the same data on sys.stdin and uses the same config entry as news2mail.pl.

Note

There is no need to import and call this method directly. SynFu provides the wrapper script synfu-news2mail (see SynFu.News2Mail) for this job.