[PATCH] Re: Bug: IP addresses in header are not tagged
David Relson
relson at osagesoftware.com
Tue Mar 9 13:47:28 CET 2004
On Tue, 09 Mar 2004 12:06:31 +0100
Boris 'pi' Piwinger wrote:
> Hi!
>
> >From Jozef's example message I verified that bogofilter does
> not tag IP addresses from the header. This is clearly a bug.
>
> pi
How does this look? (Patch is attached)
### Sample 1 line message ###
[relson at osage src]$ cat msg.header.ipaddress.txt
Received: from lists.aotto.com (unknown [65.77.130.210])
### With fixed tagging ###
[relson at osage src]$ bogofilter -C <
~/bogofilter/cvs/src/msg.header.ipaddress.txt -vvv
X-Bogosity: No, tests=bogofilter, spamicity=0.205174,
version=0.17.2.cvs.CVStime_20040309_041654
n pgood pbad fw U
"rcvd:lists.aotto.com" 6834 0.091433 0.000033 0.000366 +
"rcvd:65.77.130.210" 0 0.000000 0.000000 0.415000 -
"rcvd:from" 134559 0.999853 1.000050 0.500049 -
"rcvd:unknown" 29051 0.112940 0.344417 0.753059 +
N_P_Q_S_s_x_md 2 5.92e-01 2.53e-03 2.05e-01
1.00e-02 4.15e-01 0.100
### Using block_on_subnets ###
> [relson at osage src]$ bogofilter -C <
> ~/bogofilter/cvs/src/msg.header.ipaddress.txt -vvv
> --block_on_subnets=yes
X-Bogosity: No, tests=bogofilter, spamicity=0.007363,
version=0.17.2.cvs.CVStime_20040309_041654
n pgood pbad fw U
"url:65.77.130.210" 2917 0.039039 0.000000 0.000001 +
"rcvd:lists.aotto.com" 6834 0.091433 0.000033 0.000366 +
"url:65.77.130" 3776 0.050414 0.000150 0.002975 +
"url:65.77" 3802 0.050481 0.000501 0.009834 +
"url:65" 10083 0.075347 0.074408 0.496864 -
"rcvd:from" 134559 0.999853 1.000050 0.500049 -
"rcvd:unknown" 29051 0.112940 0.344417 0.753059 +
N_P_Q_S_s_x_md 5 9.85e-01 5.77e-10 7.36e-03
1.00e-02 4.15e-01 0.100
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.0309.token.c
Type: application/octet-stream
Size: 516 bytes
Desc: not available
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20040309/bfbd3636/attachment.obj>
More information about the Bogofilter
mailing list