Smart Spam Filter  1.0
A spam filter using Machine Learning.
is_spam.sh File Reference

Shell script to improve spam detection. More...

s

Variables

 SPAMMAIL =$1
 
 SPAM_FILE_NAME ="${SPAMMAIL//!*/}"
 
 MAIL_DIR ="${SPAMMAIL%/*}"
 
 DIRNAME ="${MAIL_DIR%/*}"
 
 SPAM_DIR ="$DIRNAME/spam"
 
 SPAM_TRAIN_DIR ="$DIRNAME/train_spam"
 
 WATCHLOG ="$DIRNAME/watchlog"
 
 TRAIN_NO =1000
 
 
 SPAM_NO ="$(ls $SPAM_TRAIN_DIR | wc -l)"
 
 PYTHON_PID ="$(ps -fu $USER| grep "fast_single.py" | grep -v "grep" | awk '{print $2}')"
 

Detailed Description

Shell script to improve spam detection.

It moves the spam mail to spam directory and copies it to training directory. After a fixed number of spam mails are collected, it runs partial_filter.py to improve model.

Author
Sudhanshu Dubey
Version
1.0
Date
3/7/2019
Parameters
SPAMMAILLocation of spam mail
Bug:
No known bugs