chiark / gitweb /
gpg-refresh-cache: accept key ID as optional arg
[bin.git] / bsmtp-pull
index 439bee284fc258cb84f0f6c2a85f189e30e28569..f20cdea7e41802a19cdf8eb90000a75fab99daa4 100755 (executable)
@@ -24,10 +24,14 @@ lockfile-create "$HOST"
 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"
+if [ "$BSMTP_PULL_DEBUG" ]; then
+       ls -l "$HOST" || true
+fi
 [ -s "$HOST" ] || exit 0
-/usr/sbin/sendmail -bS -odq < "$HOST"
+/usr/sbin/sendmail -bS -odb < "$HOST"
 rm -f "$HOST"
 
 exit 0