chiark / gitweb /
bsmtp-pull: add debugging
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 18 Feb 2013 17:47:14 +0000 (17:47 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 18 Feb 2013 17:47:14 +0000 (17:47 +0000)
bsmtp-pull

index ebaee7e..8723a4f 100755 (executable)
@@ -27,6 +27,9 @@ 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"
 rm -f "$HOST"