diff options
Diffstat (limited to 'mutt/alias.sh')
-rwxr-xr-x | mutt/alias.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mutt/alias.sh b/mutt/alias.sh index 209c50f..c2cb1ee 100755 --- a/mutt/alias.sh +++ b/mutt/alias.sh @@ -1,5 +1,4 @@ -#!/bin/sh - +#!/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;}}') |