Subversion Repositories planix.SVN

Rev

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.mbox
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