All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # we are called from spamfilter and the following cases could be:
3 # 1. spamfilters are unsure
4 # symptom: $SPAM_UNSURE is set (sa-unsure)
5 # reaction: file as unsure
7 # 2. spamfilters disagree
8 # symptom: $SPAM_DISAGREE is set (sa-ham or sa-spam)
9 # reaction: file as disagreed
11 # 3. message is spam for sure
12 # symptom: $IS_SPAM is set
13 # reaction: file as spam
15 # 4. message needs to be retrained as spam
16 # symptom: $RETRAIN is set to spam
17 # reaction: retrain filters, report, and file as spam
19 # 5. message needs to be retrained as ham
20 # symptom: $RETRAIN is set to ham
21 # reaction: retrain crm114 and resubmit the message to the spamfilter
23 # 6. spam degree is unknown:
24 # symptom: $SPAM_UNKNOWN contains the reason for skipping the checks
25 # reaction: pass the message
27 # 7. message is not spam
28 # symptom: none of the above
29 # reaction: pass the message
35 LOG="spamfilter: filing as unsure$NL"
46 LOG="spamfilter: filing as disagreed$NL"
57 LOG="spamfilter: (re)training as spam$NL"
59 |$TRAINER --spam 2>/dev/null
66 LOG="spamfilter: retraining as ham$NL"
68 |$TRAINER --ham 2>/dev/null
70 # |$TRAINER --ham 2>/dev/null | $PROCMAIL
73 # not using flag E because IS_SPAM could have been set further up
77 LOG="spamfilter: filing as spam$NL"
83 { LOG="spamfilter: allowed to pass$NL" }