aboutsummaryrefslogtreecommitdiff
path: root/bin/mutt-autoalias
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-13 15:53:55 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-13 15:53:55 -0500
commitd87bd3ddaa696c6a60528d99783aa33db6e8f214 (patch)
tree7c665bef4e2da83e1e9f51419284c7907195732c /bin/mutt-autoalias
parentSwitch to powerline10k prompt after god knows how many years of wunjo (diff)
Drop a bunch of old config files
Diffstat (limited to '')
-rwxr-xr-xbin/mutt-autoalias16
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/mutt-autoalias b/bin/mutt-autoalias
deleted file mode 100755
index a9725d5..0000000
--- a/bin/mutt-autoalias
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-MESSAGE=$(cat)
-
-EXCLUDE="\(.*@bugs.\(debian.org|launchpad.net\)|.*@.*.launchpad.net|noreply|.*facebook.*|.*gmail.com.*Behalf Of\)"
-NEWALIAS=$(echo "${MESSAGE}" | grep ^"From: " | egrep -v "${EXCLUDE}" | sed s/[\,\"\']//g | awk '{$1=""; if (NF == 3) {print "alias" $0;} else if (NF == 2) {print "alias" $0 $0;} else if (NF > 3) {print "alias", tolower($(NF-1))"."tolower($2) $0;}}')
-
-if grep -Fxq "$NEWALIAS" $HOME/.mutt/alias.rc; then
- :
-elif [ "x${NEWALIAS}" = "x" ]; then
- :
-else
- echo "$NEWALIAS" >> $HOME/.mutt/alias.rc
-fi
-
-echo "${MESSAGE}"