[syslog-ng] [PATCH] Extend the parsing of NUMBER and FLOAT type in patterndb

SZALAY Attila sasa at balabit.hu
Mon Jan 31 12:31:56 CET 2011


Hi!

At the weekend I tried to create patterndb rules to spamassassin message and
realised that it fail in to way. First when spamassasin add negative spam
score result. This negative number is not recognised.

Second issue is when I use bayes. Sometimes bayes give a very small
probabaility number (ie 10^-13 as the order of magnitude) In this situation
the exponent is appear in the log (ie.: bayes=1.11022302462516e-16) which
not handled by patterndb very good either.

SZALAY Attila (1):
  Added two feature into NUMBER and FLOAT parsing

 src/radix.c             |   37 ++++++++++++++++++++++++++++++-------
 tests/unit/test_radix.c |   31 +++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 7 deletions(-)



More information about the syslog-ng mailing list