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 # 4a. message needs to be retrained as spam
16 # symptom: $CRM_RETRAIN is set to spam
17 # reaction: retrain filters, report, and file as spam
19 # 4b. message is spamtrapped
20 # symptom: $SPAMTRAPPED is set
21 # reaction: train filters, report, and file as spam
23 # 5. message needs to be retrained as ham
24 # symptom: $CRM_RETRAIN is set to ham
25 # reaction: retrain crm114 and resubmit the message to the spamfilter
27 # 6. spam degree is unknown:
28 # symptom: $SPAM_UNKNOWN contains the reason for skipping the checks
29 # reaction: pass the message
31 # 7. message is not spam
32 # symptom: none of the above
33 # reaction: pass the message
39 LOG="spamfilter: filing as unsure$NL"
41 $INBOX/.retrain.unsure/
47 LOG="spamfilter: filing as disagreed$NL"
49 $INBOX/.retrain.disagree/
53 * 1^0 CRM_RETRAIN ?? spam
54 * 1^0 SPAMTRAPPED ?? .
56 LOG="spamfilter: (re)training as spam$NL"
58 |$TRAINER --spam 2>/dev/null
65 LOG="spamfilter: retraining as ham$NL"
67 |$TRAINER --ham 2>/dev/null
69 # |$TRAINER --ham 2>/dev/null | $PROCMAIL
72 # not using flag E because IS_SPAM could have been set further up
76 LOG="spamfilter: filing as spam$NL"
82 { LOG="spamfilter: allowed to pass$NL" }