X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/551005fa0055202650a6a24522698d5da8b5e87e..7013dfe93a05082153f79eca6c9e5c05b54d9d50:/.mutt/filter-proxy diff --git a/.mutt/filter-proxy b/.mutt/filter-proxy deleted file mode 100755 index a2cf580..0000000 --- a/.mutt/filter-proxy +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# filter-proxy - enable filters to work on real files (using tmpfiles) -# -# Copyright © 2008 martin f. krafft -# Released under the terms of the Artistic Licence 2.0 -# -set -eu - -cmd= -file= -while [ -n "${1:-}" ]; do - if [ -z "${2:-}" ]; then - file="$1" - else - case "$1" in - *' '*) cmd="$cmd '$1'";; - *) cmd="$cmd $1";; - esac - fi - shift -done - -TMPFILE="$(tempfile -p proxy)" -trap "rm -f $TMPFILE" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 - -eval $cmd <"$file" >$TMPFILE -cat $TMPFILE >"$file" - -rm -f $TMPFILE -trap - 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15