Skip to content

Commit

Permalink
Lazier matching of recipient address
Browse files Browse the repository at this point in the history
Fixes #4495
  • Loading branch information
cgx committed Aug 15, 2018
1 parent 6a45bb2 commit e5d3c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/MailerUI/UIxMailEditor.m
Expand Up @@ -268,7 +268,7 @@ - (NSString *) from
while ((identity = [allIdentities nextObject]) && !valid)
{
// from ivar must contain a valid email address surrounded by pointy brackets
r = [[from lowercaseString] rangeOfString: [NSString stringWithFormat: @"<%@>", [[identity objectForKey: @"email"] lowercaseString]]];
r = [[from lowercaseString] rangeOfString: [[identity objectForKey: @"email"] lowercaseString]];
if (r.length > 0)
{
valid = YES;
Expand Down

0 comments on commit e5d3c5f

Please sign in to comment.