New header token tagging

Matthias Andree matthias.andree at gmx.de
Thu Sep 25 23:40:37 CEST 2003


On Thu, 25 Sep 2003, Matthias Andree wrote:

> Given the recent amount of Swen junk and other things, I've wondered if
> a "header-only" filter would fly. I think now that we have separate
> header and body tokens, it should be possible to just run a second
> bogofilter instance which sees only the header and adds a different tag,
> from the same data base.

I am currently using this in my ~/.mailfilter (maildrop related):

# header-only bogofilter
bfh=`sed '/^$/ q' | bogofilter -v | sed 's/X-Bogosity: //'`
xfilter "reformail -I \"X-Header-Bogosity: $bfh\""





More information about the Bogofilter mailing list