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

Shell script to improve ham detection. More...

Variables

 HAMMAIL =$1
 
 HAM_FILE_NAME ="${HAMMAIL//!*/}"
 
 MAIL_DIR ="${HAMMAIL%/*}"
 
 DIRNAME ="${MAIL_DIR%/*}"
 
 HAM_DIR ="$DIRNAME/ham"
 
 HAM_TRAIN_DIR ="$DIRNAME/train_ham"
 
 WATCHLOG ="$DIRNAME/watchlog"
 
 TRAIN_NO =1000
 
 
HAM_NO ="$(ls $HAM_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 ham detection.

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

Author
Sudhanshu Dubey
Version
1.0
Date
3/7/2019
Bug:
No known bugs