<<< Date Index >>>     <<< Thread Index >>>

Re: sa-learn wihin muttrc keybindings



Hi,

* mess-mate <messmate@xxxxxxx> [19-05-2005 18:13]:

> i'm trying to insert a macro to get sa-learn (spamassassin) if a
> message is spam like this:
> macro index \e7 "!sa-learn --spam  --no-sync\n" "sa-learn as spam"
> # spamassassin classify as ham
> macro pager \e7 "!sa-learn --spam  --no-sync\n" "sa-lear as spam"
> 
> Anyone get it worked ?
> Thanks for your help

A different approach:

I let spamassassin learn from within a cron job.  I just save every
spam I encounter that is not already in my spam mailfolder, *to* that
spam mailfolder, and run this shell script from within a nightly
cronjob:

#!/bin/sh

echo "Running $0.."

sa-learn --no-sync --showdots --mbox --spam /home/rene/mail/spam
sa-learn --sync

(this will produce output and thus send me a daily mail)

This means that I don't have to wait each time I encounter a spam in
mutt, which, on my machine, can be annoying since it is slow.

Maybe this is of use to you.

-- 
René Clerc                      - (rene@xxxxxxxx) - PGP: 0x9ACE0AC7

CAT, n.  A soft, indestructible automaton provided by nature to be
kicked when things go wrong in the domestic circle.
-Ambrose Bierce, "The Devil's Dictionary"

Attachment: pgp1Rhraik4Ip.pgp
Description: PGP signature