X-Git-Url: https://git.madduck.net/etc/neomutt.git/blobdiff_plain/7deaf6469e0fca4b6215eb84966c8f28b41da856..6648ac73321ea964c9882c4d4e391e0460c1a855:/.config/neomutt/replace-header?ds=inline diff --git a/.config/neomutt/replace-header b/.config/neomutt/replace-header deleted file mode 100755 index ab7444b..0000000 --- a/.config/neomutt/replace-header +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -# -# edit-header - helper script to append/replace/remove headers with mutt -# -# Based on an idea by David Champion -# -# Copyright © 2008 martin f. krafft -# Released under the terms of the Artistic Licence 2.0 -# -set -eu - -if [ ! -x "$(command -v formail)" ]; then - echo E: formail not installed. >&2 - exit 1 -fi - -header="${1:-}" -if [ -z "$header" ]; then - echo "E: no header specified" >&2 - exit 1 -fi - -get_header_contents() -{ - local contents - printf "Enter ${1:-header} contents: " >/dev/tty - read contents &2 - exit 1 - ;; - -esac - -echo "set my_editor=\"\$editor\"" -echo "set my_filter=\"$editor\"" -echo -n "push '" -echo -n "set editor=\"\$my_filter\"" -echo -n "" -echo -n "set editor=\"\$my_editor\"" -echo -n "unset my_filter" -echo -n "unset my_editor" -echo "'" diff --git a/.config/neomutt/replace-header b/.config/neomutt/replace-header new file mode 120000 index 0000000..5cc745f --- /dev/null +++ b/.config/neomutt/replace-header @@ -0,0 +1 @@ +edit-header \ No newline at end of file