Fixed an error in the add_address script.
This commit is contained in:
parent
86500f6813
commit
ef7862a5d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user