summaryrefslogtreecommitdiff
path: root/acme/bin/Isspam
blob: 2c30d7703dc790afa6fb1b2650518ef1d626d26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/rc

if(! ~ $#* 0){
	echo usage: Isspam >[1=2]
	exit usage
}

if(! ~ `{pwd} /mail/fs/*/[0-9]* || ! test -f raw || ! test -f unixheader){
	echo must run in mail directory >[1=2]
	exit 'bad dir'
}

cat unixheader raw | upas/isspam