X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/f3deb3676d14750d667047bf73226bc4980f8ead..b80111ae1c9d3a2e0d29f92034bab0f843c04ddd:/bin/kill-from diff --git a/bin/kill-from b/bin/kill-from index 8d5d2ae..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 @@ -35,7 +36,7 @@ case "$ME" in exit 2 ;; esac - CHECKPREFIX='References: ' + CHECKPREFIX='References: <' CHECKPOSTFIX='>' REPREFIX='^References:.*\<' REPOSTFIX='\>' @@ -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##*/}