PGP in lexer (was: [bogofilter-announce] Bogofilter-0.17.4 - new current release)

David Relson relson at osagesoftware.com
Sun Mar 21 19:03:19 CET 2004


On Sun, 21 Mar 2004 18:31:41 +0100
Boris 'pi' Piwinger wrote:

> David Relson <relson at osagesoftware.com> wrote:
> 
> >Bogofilter-0.17.4 is the newest release in phase 2 of the bogofilter
> >"Code Clean-up" release.  It eliminates the gratuitous config file
> >warning message of 0.17.3, fixes a minor bug in bogotune, and
> >improves parsing of mime header parts and pgp signatures.
> 
> What is this PGP handling good for? Was there any problem?
> 
> pi

Hi pi,

A typical pgp signature block looks like:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQBAHUWBaTUjGSdb2eIRAuYnAJ9NP7yUiGKL8Xp3cbqJSBVjPbrDjwCeMGZB
SBUICjVBeMmFkmsljrgCpsI=
=9z3S
-----END PGP SIGNATURE-----

Training with pgp signed messages adds tokens that are unlikely to every
again be seen.  The new code recognizes this and ignors those tokens.

It's a feature that has been requested and I was in the mood to do some
new implementation.

David




More information about the Bogofilter mailing list