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:
parent
f3bbaceb73
commit
d9b587fd4a
@ -573,8 +573,9 @@ function SendEmail {
|
|||||||
|
|
||||||
local i
|
local i
|
||||||
|
|
||||||
if [ "${destinationMails[@]}" != "" ]; then
|
if [ "${destinationMails}" != "" ]; then
|
||||||
for i in "${destinationMails[@]}"; do
|
# Not quoted since we split at space character, and emails cannot contain spaces
|
||||||
|
for i in ${destinationMails}; do
|
||||||
if [ $(CheckRFC822 "$i") -ne 1 ]; then
|
if [ $(CheckRFC822 "$i") -ne 1 ]; then
|
||||||
Logger "Given email [$i] does not seem to be valid." "WARN"
|
Logger "Given email [$i] does not seem to be valid." "WARN"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user