Commit 2aa37700 authored by Robert Anderson's avatar Robert Anderson Committed by Nigel Kukard
Browse files

Fixed email address matching when sender is empty

Sender may be null and shouldn't try to match against email specification
parent bbf4cdd8
......@@ -521,6 +521,9 @@ sub emailAddressMatches
my $match = 0;
# Sender may be null
return $match if ($email eq "");
# Strip email addy
my ($email_user,$email_domain) = ($email =~ /^(\S+)@(\S+)$/);
my ($template_user,$template_domain) = ($template =~ /^(\S*)@(\S+)$/);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment