Update the automatic address script.

This commit is contained in:
Storm Dragon 2021-01-16 16:33:00 -05:00
parent 0f8d74cafb
commit c572fbcbc1

View File

@ -107,16 +107,20 @@ add_email() {
'github.com' 'github.com'
'gitlab.com' 'gitlab.com'
'mailto' 'mailto'
'no-reply'
'noreply' 'noreply'
'paypal.com' 'paypal.com'
'walmart.com' 'walmart.com'
) )
# Make the list into a format that works with bash regexp.
ignoreList="${ignoreList[*]}"
ignoreList="${ignoreList// /|}"
# Do not add aliases with no alias-name # Do not add aliases with no alias-name
if [[ "$alias" == "UNNAMED" ]]; then if [[ "$alias" == "UNNAMED" ]]; then
return return
fi fi
# Try to filter out addresses that do not receive replies. # Try to filter out addresses that do not receive replies.
if [[ "<${emailAddress,,}" =~ ${ignoreList} ]]; then if [[ "${emailAddress,,}" =~ ${ignoreList} ]]; then
return return
fi fi
# Do not add the same address twice. # Do not add the same address twice.