Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_fixcpp/mail/lib/spam.rc – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
 
3
rfork en
4
TMP=/tmp/spam.$sysname.$pid
5
sed '/^$/,$ s/^From / From /' >$TMP.msg
6
upas/fs -f $TMP.msg
7
{
8
	echo '# hash table'
9
upas/msgcat $TMP.msg | upas/msgtok |
10
	grep -v '^....................(.*)	'|
11
		sed 's/$/	1/'
12
} >$TMP.tok
13
cd /mail/box/$user
14
#cp $TMP.tok /tmp/_prof.spam
15
upas/addhash -o _prof.mbox _prof.mbox 1 $TMP.tok -1
16
upas/addhash -o _prof.spam _prof.spam 1 $TMP.tok 1
17
rm -f $TMP.*
18