plan9front/acme/bin/Spam

14 lines
231 B
Plaintext
Raw Normal View History

2011-04-14 10:27:24 -07:00
#!/bin/rc
if(! ~ $#* 0){
echo usage: Spam >[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/spam