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

Re: sa-learn wihin muttrc keybindings



* mess-mate <messmate@xxxxxxx> [2005-05-19 18:11:44 +0200]:

> Hi,
> 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


Not sure where I got these but....

macro index \eS "<enter-command>unset wait_key\n\
<pipe-entry>sa-learn --forget\n\
<pipe-entry>sa-learn --ham --no-rebuild\n\
<enter-command>set wait_key\n" "relearn message as non-spam"

macro index S "<enter-command>unset wait_key\n\
<pipe-entry>sa-learn --forget\n\
<pipe-entry>sa-learn --spam --no-rebuild\n\
<enter-command>set wait_key\n<save-message>=spam\n" "relearn message
as spam, and move to spam mailbox"


-- 
Luke                 | PGP: 0xFBE7D8AF
goseigen@xxxxxxxxxxx | 2A44 9EB2 F541 C1F2 D969  56E3 8617 5B7F FBE7 D8AF