diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2016-11-29 20:45:37 +0000 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2016-11-29 20:45:37 +0000 |
commit | a654f3b38b6ac88771b59e53058ebcec1d393424 (patch) | |
tree | ff73ce5076aba68684f3e639ef6a68706ca872d8 /Mail/mutt | |
parent | 9a4541b1596746264fc4f2768676aa17b5703eb6 (diff) | |
download | dotfiles-a654f3b38b6ac88771b59e53058ebcec1d393424.tar.gz dotfiles-a654f3b38b6ac88771b59e53058ebcec1d393424.tar.bz2 dotfiles-a654f3b38b6ac88771b59e53058ebcec1d393424.zip |
remove unecessary vim plugins
Diffstat (limited to 'Mail/mutt')
-rwxr-xr-x | Mail/mutt/alias.sh | 14 |
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}" |