> >I'd therefore like to either be able to forward spam messages to > >spamassassin and say "look, this is spam, learn from it", > > This happens automatically with a recent Spamassassin version > if configured properly. You do not say enough about your > setup to judge whether you have set up spamassassin properly or not.
sa-learn can be used to learn (or forget) both ham and spam. We dump all spam and any misclassified ham into a set of folders and run sa-learn to forget them and then to learn them (the forget is to ensure that no message will still be misclassified.) #!/usr/bin/bash for TYPE in spam ham; do echo -n $TYPE... set -- /etc/mail/spamassassin/$TYPE/move/* [ -f "$1" ] && \ sa-learn --forget --showdots /etc/mail/spamassassin/$TYPE/move/* && \ sa-learn --$TYPE --showdots /etc/mail/spamassassin/$TYPE/move/* && \ mv /etc/mail/spamassassin/$TYPE/move/* /etc/mail/spamassassin/old$TYPE/ echo done. done exit 0 -- Herb Martin -- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
