Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Spam


Subsections

Debian Packages: https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=spamassassinspamassassin

The https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=spamassassinspamassassin package is extremely useful for dealing with unwanted emails. Alternatives include https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=crm114crm114 which can learn very fast, and https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=bogofilterbogofilter.

Procmail

If you use https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=procmailprocmail 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 https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=spamassassinspamassassin learn from both examples of spam and from examples of non-spam (ham), within your https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=muttmutt 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"


Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.