aboutsummaryrefslogtreecommitdiff
path: root/Mail/mutt
diff options
context:
space:
mode:
Diffstat (limited to 'Mail/mutt')
-rwxr-xr-xMail/mutt/alias.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/Mail/mutt/alias.sh b/Mail/mutt/alias.sh
deleted file mode 100755
index c2cb1ee..0000000
--- a/Mail/mutt/alias.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-MESSAGE=$(cat)
-
-NEWALIAS=$(echo "${MESSAGE}" | grep ^"From: " | 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/aliases.txt; then
- :
-else
- if [[ "$NEWALIAS" != "*Google*" ]] || [[ "$NEWALIAS" != "*no-reply*" ]]; then
- echo "$NEWALIAS" >> $HOME/.mutt/aliases.txt;
- fi
-fi
-
-echo "${MESSAGE}"