2022. 1. 10. 17:41 WorkHolic/스크랩
(스크랩) SpamAssassin rules Automatic rule generation
728x90
반응형
SpamAssassin rules Automatic rule generation
Automatic rule generation
A script apparently associated with the SoughtRules automatic score generation can be downloaded from trunk:
svn checkout http://svn.apache.org/repos/asf/spamassassin/trunk
cd trunk/masses/rule-dev
./seek-phrases-in-corpus ham:dir:~/Maildir/ spam:dir:~/Maildir/.bad.spam-missed/
The script contains instructions. You tell it a directory or file containing spam, and a directory or file containing non-spam, and it'll come up with rules that match the spam but not the non-spam.
If you have run MassCheck, you can generate rules for the set of spams that were below the default threshold by doing something like (you'll probably need to change the paths to corpora):
cd trunk/masses
awk '$2 < 5' < spam-*.log > missed_spam.ids
./mboxget < missed_spam.ids > missed_spam.mbox
cd rule-dev
./seek-phrases-in-corpus ham:dir:$HOME/masscheckwork/ham/ spam:detect:~/masscheckwork/nightly_mass_check/masses/missed_spam.mbox > seek.out
https://cwiki.apache.org/confluence/display/spamassassin/WritingRules
728x90
SMALL
'WorkHolic > 스크랩' 카테고리의 다른 글
(스크랩) Windows용 최고의 스크린샷 도구 (0) | 2022.03.25 |
---|---|
(스크랩) HP iLO(2~4)비밀번호 재설정 방법 (0) | 2022.01.25 |
FileType rules show executable even though file shows data -- Please help fix. (0) | 2022.01.05 |
(스크랩) 30 가지 최고의 웹 사이트 링크 검증 테스트 도구 (0) | 2021.12.11 |
(스크랩) 무료 오픈소스 이메일 서버 (0) | 2021.11.11 |