[Spambayes] Patch: Add globbing to splitndirs.py

Alexander Leidinger Alexander@Leidinger.net
Tue, 24 Sep 2002 21:01:14 +0200


On Tue, 24 Sep 2002 14:50:00 -0400 Guido van Rossum <guido@python.org>
wrote:

> Are you perhaps using individual files (like those created by MH or
> GNUS) that aren't in mbox format???

No.

> Mbox format requires each message to be preceded by a "Unix From"
> line, of the form
> 
> >From guido@python.org  Tue Sep 24 14:49:21 2002
> 
> (Note that there's a space, no colon after "From".)

(275) netchild@ttyp0 % for i in $(grep ' 0 (' count.txt | cut -f 1 -d ' '); do
head -1 $i          
done
>From owner-freebsd-advocacy  Fri Apr 13  7:29: 6 2001
>From owner-freebsd-advocacy  Wed Aug 29 15:42: 0 2001
>From owner-freebsd-advocacy  Thu Nov 15 13: 6:40 2001
>From owner-freebsd-advocacy  Fri Nov 23  7:34: 9 2001
>From owner-freebsd-advocacy  Sun Dec 30 18:25: 4 2001
[...]

BTW.: splitndirs.py with -n 1000 is a lot slower than with -n 100, but I
don't see the reason. I already added an '-r'-Switch (round robin
instead of random distribution), but this doesn't help. Any ideas?

Bye,
Alexander.

-- 
           Intel: where Quality is job number 0.9998782345!

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7