repo.or.cz
/
smtp.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sm*: clean up sml, smq, and smr
[smtp.git]
/
smq
blob
5395b8f59d484877b23bbb3f88a3219d596a42f9
1
#!/bin/sh
2
# Queue a message
3
4
QDIR
=
"
$HOME
/.smq"
5
6
umask
077
7
8
mkdir
-p
"
$QDIR
"
||
exit
1
9
cd
"
$QDIR
"
||
exit
1
10
11
i
=
0
12
while
test -f
"mail
$i
"
;
do
13
i
=
`expr
$i
+ 1`
14
done
15
MAIL
=
mail
$i
16
17
echo
"$@"
>
"
$MAIL
"
||
exit
1
18
cat
>
"
$MAIL
"
||
exit
1