summaryrefslogtreecommitdiff
path: root/acme/bin/Spam
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-04-14 17:27:24 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-04-14 17:27:24 +0000
commita150899221a5badff9740703b754f901b4f52762 (patch)
tree3d6911874b0ee763e40490d04f56fc09d89ccfa6 /acme/bin/Spam
parent71cfa9c637386ebe00fc6d1bf6215db6657559f4 (diff)
downloadplan9front-a150899221a5badff9740703b754f901b4f52762.tar.xz
fill /acme
Diffstat (limited to 'acme/bin/Spam')
-rwxr-xr-xacme/bin/Spam13
1 files changed, 13 insertions, 0 deletions
diff --git a/acme/bin/Spam b/acme/bin/Spam
new file mode 100755
index 000000000..d423b8ec2
--- /dev/null
+++ b/acme/bin/Spam
@@ -0,0 +1,13 @@
+#!/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