X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/5af333ca3b83425e5cb3aa704b37654d576856c1..05736b89182e3eeed0fae64d320484831f9a57fd:/bin/send-outgoing diff --git a/bin/send-outgoing b/bin/send-outgoing index 244218f..1d5f800 100755 --- a/bin/send-outgoing +++ b/bin/send-outgoing @@ -7,10 +7,11 @@ DISCARD_RECORD=~/.maildir/.discard DONT_STORE=1 -LOCKFILE="$OUTBOX/.sendmail.lock" +ME="${0##*/}" +LOCKFILE="$OUTBOX/.$ME.lock" trap "rm -f $LOCKFILE" 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 sendmail process is already running over that Maildir." >&2 + echo "E: another $ME process is already running over that Maildir." >&2 exit 1 fi