From ef7862a5d94bf6acf383d237b60f19a084abbfb1 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 20 Apr 2019 17:05:40 -0400 Subject: [PATCH] Fixed an error in the add_address script. --- fleacollar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fleacollar.sh b/fleacollar.sh index 330e3b7..7f8feb6 100755 --- a/fleacollar.sh +++ b/fleacollar.sh @@ -95,7 +95,7 @@ initialize_directory() 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(\$2)"-"tolower(\$(NF-1)) \$0;}}') +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(\$2)"-"tolower(\$(NF-1)) \$0;}}') emailAddress="<\${newAlias##*<}" if ! grep -Fq "\$emailAddress" "$muttHome/aliases" ; then