26.18 Procmail

REVIEW

If you use procmail, procmail, procmail you can easily have spam moved into its own folder with:

#
# Use Spam Assassin
#
:0fw
| spamassassin
:0:
* ^X-Spam-Status: Yes
.Spam.Spam-`date +%Y-%m`/

Also, to have spamassassin, spamassassin, spamassassin, spamassassin, spamassassin, spamassassin, spamassassin, spamassassin learn from both examples of spam and from examples of non-spam (ham), within your mutt mail reading tool, you can add the following to /home/kayon/.muttrc:

# spamassassin classify as spam
macro index X "|/usr/bin/sa-learn --spam"
macro pager X "|/usr/bin/sa-learn --spam"
# spamassassin classify as ham
macro index H "|/usr/bin/sa-learn --ham"
macro pager H "|/usr/bin/sa-learn --ham"
# rebuild the spamassassin bayes filter db
macro index B "!/usr/bin/sa-learn --rebuild"


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0