new
This commit is contained in:
parent
38c7eb9bd2
commit
f1007ee0c6
7 changed files with 173 additions and 0 deletions
14
bin/upas/spambox
Executable file
14
bin/upas/spambox
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/local/plan9/bin/rc
|
||||
|
||||
if (~ $#* 0)
|
||||
echo usage: spambox mailfs/mbox && exit "usage"
|
||||
box=$1
|
||||
msgs=(`{9p ls $box>[2=1]|awk '$10 ~ /[0-9][0-9]*/{print $10}'})
|
||||
if (~ $#msgs 0)
|
||||
echo no messages in $box && exit "none"
|
||||
|
||||
echo -n adding
|
||||
for (m in $msgs){
|
||||
echo -n ' '$m
|
||||
spam $box/$m
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue