2
0
mirror of https://github.com/deajan/osync synced 2024-11-11 07:10:40 +00:00

Fixed email RFC822 check

This commit is contained in:
deajan 2019-02-07 17:04:41 +01:00
parent f3bbaceb73
commit d9b587fd4a

View File

@ -573,8 +573,9 @@ function SendEmail {
local i
if [ "${destinationMails[@]}" != "" ]; then
for i in "${destinationMails[@]}"; do
if [ "${destinationMails}" != "" ]; then
# Not quoted since we split at space character, and emails cannot contain spaces
for i in ${destinationMails}; do
if [ $(CheckRFC822 "$i") -ne 1 ]; then
Logger "Given email [$i] does not seem to be valid." "WARN"
fi