diff options
author | Vasil Zlatanov <v@skozl.com> | 2016-11-29 20:46:34 +0000 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2016-11-29 20:46:34 +0000 |
commit | 6630bb02f23b60510f3b9a961e684a5ae1d02c11 (patch) | |
tree | d8dcbb8e4c67bb156662968cab3d30450b098478 /Mail | |
parent | a25443ba2e511f3279f18b93a98a4c0421896061 (diff) | |
parent | a654f3b38b6ac88771b59e53058ebcec1d393424 (diff) | |
download | dotfiles-6630bb02f23b60510f3b9a961e684a5ae1d02c11.tar.gz dotfiles-6630bb02f23b60510f3b9a961e684a5ae1d02c11.tar.bz2 dotfiles-6630bb02f23b60510f3b9a961e684a5ae1d02c11.zip |
Merge branch 'master' of github.com:vaskozl/dotfiles
Diffstat (limited to 'Mail')
-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}" |