From a654f3b38b6ac88771b59e53058ebcec1d393424 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 29 Nov 2016 20:45:37 +0000 Subject: remove unecessary vim plugins --- Mail/mutt/alias.sh | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 Mail/mutt/alias.sh (limited to 'Mail/mutt') 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}" -- cgit v1.2.3-54-g00ecf