X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/7928fb1e37e8baf5eefc315564f7bd9e00d2537d..fc089b76dfbb36f9bff9583fc9e08b257cfb4615:/bin/release-delayed-messages diff --git a/bin/release-delayed-messages b/bin/release-delayed-messages index 7ea142e..73c6b3b 100755 --- a/bin/release-delayed-messages +++ b/bin/release-delayed-messages @@ -1,6 +1,5 @@ #!/bin/sh set -eu -exit 0 DELAYED_QUEUE=$HOME/.maildir/.delayed @@ -12,6 +11,7 @@ LOCKFILE="$VAR/.$ME.lock" trap "rm -f $LOCKFILE" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 if ! lockfile -0 -r0 -l 3600 "$LOCKFILE" 2>/dev/null; then echo "E: another $ME process is already running over that Maildir." >&2 + trap - 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 exit 1 fi