[...]-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello out there...
I noticed that sa-learn sometimes is a bit too slow for my needs.
I call sa-learn via: /usr/bin/sa-learn --no-rebuild --spam <mailfile>
To speed the call itself up, I think about writing a script that loads the mailfile into RAM, detaches itself from the calling process (backgrounds itself) and then feeds sa-learn with the mail. That may take a little longer, but I do not have to wait for it.
Now I want to ask a few things: 1) Does such a script already exist? (If yes, where can I find it?) 2) What problems may I run into? (memory consumption etc.) 3) Any additional hints?
1.
do not know (and with hindsight, yes)
2.
do not know
3.
I could be stating the obvious here but why not run it with & at the end ?
My guess is that on most systems preloading the file into ram will not deliver significant gains as I suspect SA to already do some 'buffering' for itself.
If your mail file is locked and you want to circumvent this you have copy it first in a temp file see example script.
salearnscript (3 lines):
cp %1 /tmp/spamfile$$ /usr/bin/sa-learn --no-rebuild --spam /tmp/spamfile$$ rm /tmp/spamfile$$
run this as salearnscript <spamfile> &
Good luck.
Ivar.
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk