X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/f63379a35eefef6a7429467e6d3a282428e7f5f6..09a36478ac73b9fe39aa5d66f97ddb90c30281e2:/bin/kill-from diff --git a/bin/kill-from b/bin/kill-from index c0aff73..396d23b 100755 --- a/bin/kill-from +++ b/bin/kill-from @@ -1,7 +1,8 @@ #!/bin/sh set -eu -IGNORE_FILE="${0%/*}/../config/ignore" +CONFIG_DIR="${0%/*}/../config" +IGNORE_FILE="$CONFIG_DIR/ignore" ME="${0##*/}" case "$ME" in @@ -50,6 +51,9 @@ fi ARG_ESCAPED="$(echo "$ARG" | sed -re 's,([.+]),\\\1,g')" cat <<_eof >> $IGNORE_FILE -$^# $(date +%Y.%m.%d.%H.%m.%S) added by ${0##*/} +$^# added by $ME @$(date +%s) $REPREFIX$ARG_ESCAPED$REPOSTFIX _eof + +cd $CONFIG_DIR +git-commit -m"$ME $1" ${IGNORE_FILE##*/}