chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpg-refresh-cache: accept key ID as optional arg
[bin.git]
/
bsmtp-pull
diff --git
a/bsmtp-pull
b/bsmtp-pull
index 439bee284fc258cb84f0f6c2a85f189e30e28569..f20cdea7e41802a19cdf8eb90000a75fab99daa4 100755
(executable)
--- a/
bsmtp-pull
+++ b/
bsmtp-pull
@@
-24,10
+24,14
@@
lockfile-create "$HOST"
lockfile-touch "$HOST" &
TOUCH="$!"
trap 'kill "$TOUCH"; lockfile-remove "$HOST"' EXIT ERR HUP INT QUIT TERM
lockfile-touch "$HOST" &
TOUCH="$!"
trap 'kill "$TOUCH"; lockfile-remove "$HOST"' EXIT ERR HUP INT QUIT TERM
+disown %1
ssh -2 -i "$HOME/.ssh/id-bsmtp-$HOST" -C "$HOST" bsmtp-pull-server > "$HOST"
ssh -2 -i "$HOME/.ssh/id-bsmtp-$HOST" -C "$HOST" bsmtp-pull-server > "$HOST"
+if [ "$BSMTP_PULL_DEBUG" ]; then
+ ls -l "$HOST" || true
+fi
[ -s "$HOST" ] || exit 0
[ -s "$HOST" ] || exit 0
-/usr/sbin/sendmail -bS -od
q
< "$HOST"
+/usr/sbin/sendmail -bS -od
b
< "$HOST"
rm -f "$HOST"
exit 0
rm -f "$HOST"
exit 0