Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Procmail


If you use 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 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"


Copyright © 1995-2006 [email protected]

 
 
  Published under the terms fo the GNU General Public License Design by Interspire