contrib/scramble problem
David Relson
relson at osagesoftware.com
Thu Jun 5 22:09:47 CEST 2003
At 03:07 PM 6/5/03, Jake Di Toro wrote:
>Here it is. And incadentally it's also leaving some files behind that
>it didn't use to, is this just a new reporting feature or is the
>cleanup code not working, files are (list|shuf).$pid
>
>--
>Till Later,
>Jake <karrde at viluppo.net>
>http://www.viluppo.net/
>
Jake,
It looks like scramble was writing an extra data line each time it finished
one .mbx and started the next. AFAICT, the following patch fixes the problem:
Index: scramble
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/contrib/scramble,v
retrieving revision 1.3
diff -u -r1.3 scramble
--- scramble 20 May 2003 14:25:11 -0000 1.3
+++ scramble 5 Jun 2003 20:03:43 -0000
@@ -127,7 +127,9 @@
while read classID fnam offset; do
if [ "$fnam" = "$file" ]; then
let length=$offset-$oldoff
- echo "$classID $fnam $oldoff $length"
+ if [ $length -gt 0 ] ; then
+ echo "$classID $fnam $oldoff $length"
+ fi
oldoff=$offset
else
file=$fnam
Give it a try and let me know if it's working for you now.
David
More information about the Bogofilter
mailing list