Hi Matt

Matt Kettler wrote:

At 01:24 AM 6/22/04 +0200, Matthias Keller wrote:

As I'm pretty much hand-feeding every spam my bayes will ever see I noticed (and I think that's worse now in 2.63 than it was in 2.55) that sa-learn always needs ages just to perform a
cat spam.txt | sa-learn --spam

Why are you abusing pipes like that? sa-learn can accept filenames, no need to pipe things to it.


sa-learn -spam spam.txt

It's possible for sa-learn to be more efficient that way too, since it will be able to seek the input file any way it wants without having to buffer the whole thing. (it may or may not do this, but it does have the extra flexibility at it's disposal)

Seems my last mail didn't get through;

Yes I actually do know that.
The reason I wrote it that way is probably because the real way I have
to do it is: (at least as far as I know :) )
zcat filename | sa-learn --spam
since my amavisd-new compresses every message and I'm not aware that
spamassassin can uncompress those messages on the fly...?

Matt
ps: And as long as sa-learn takes 30secs+ to load I also wouldn't care
too much about 10 milliseconds lost due to some I/Oing and stuff ;)

Reply via email to