# I receive very few Japanese spam mails, allmost all of spam mails are come from foreign countries. # so changes some socres of Japanese mail's rule. :2011/04/26 by [chatarou] score ISO2022JP_CHARSET -2.0 score ISO2022JP_BODY -2.0
# # We use SAKURAWEB as SMTP. so the following rule has no meanings. : 2007/12/21 by [chatarou] # score SAKURAWEB 0.0
# # "FERA" ,or "DYN_FERA" is defined & scored as porn word by [yoh]. # but, "FERRARI" is not porn word for [chatarou]...: 2011/04/16 by [chatarou] # rawbody FERRARI /\%U\%\'\%i\!\<\%j/ describe FERRARI Ferrari (maybe F1 WORKS TEAM) score FERRARI -0.1
rawbody MCRALEN /\%\^\%\/\%i\!\<\%l\%s/ describe MCRALEN Mcralen (maybe F1 WORKS TEAM) score MCRALEN -0.1
meta F1_MAIL FERRARI && MCRALEN score F1_MAIL -4.0
# # Other Virtual Domains(chatarou.sakura.ne.jp, www302.sakura.ne.jp) are not used on mailservice. : 2011/04/24 by [chatarou] # header FAKE_VDH_TO To =~ /\@(chatarou|www302)\.sakura\.ne\.jp/ describe FAKE_VDH_TO To: @(chatarou|www302).sakura.ne.jp score FAKE_VDH_TO 5.0
# # Other Virtual Domains are used by spammers as fake from-address. : 2011/04/24 by [chatarou] # header FAKE_VDH_FROM From =~ /\@www302\.sakura\.ne\.jp/ describe FAKE_VDH_FROM From: @www302.sakura.ne.jp score FAKE_VDH_FROM 5.0
# # Spammers frequently writes "Nothing" in To:header. . : 2011/04/24 by [chatarou] # header NOTHING_TO_HEADER To =~ /!@/ describe NOTHING_TO_HEADER To: Nothing score NOTHING_TO_HEADER 5.0
set USER=username set GETHTTP=http://www.flcl.org/~yoh/user_prefs set LOGFILE=/home/$user/.spamassassin/wget_logs set GETFILE=/home/$user/.spamassassin/user_prefs
wget -c -v -t 5 -o $LOGFILE -O $GETFILE $GETHTTP
if ( `grep -c "The file is already fully retrieved" $LOGFILE` == 0 ) then set ADDRESS="ほげ@chatarou.net" set SUBJECT="get_tlec_prefs更新ログ" mail -s `echo $SUBJECT | nkf -j` $ADDRESS << MAILBODY `more $LOGFILE | nkf -s` MAILBODY endif