﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
18463,"wp_mail() does not allow""<address@tld.com>"", regression",kitchin,westi,"This regression was caused by '''Ticket #17305: wp_mail() does not accommodate address format ""Name <address@tld.com>""'''.

The format ""<address@tld.com>"" no longer works, it has to be ""address@tld.com"". In Ticket #17305 Comment 12 commenter Pavelevap says this is a regression.

I explained already in  Ticket #17305 Comment 11 why the new regex is not optimal (greediness), and I provided a new regex:

patch was: '/(.+)\s?<(.+)>/'

should be: '/(.*)<(.+)>/'

I called it an enhancement, because the new regex would make ""<address@tld.com>"" work without a ""Name"" in front. But it seems actually to fix a regression.

For belt-and-suspenders, trim() can be applied to the results, as it is now, though the call to AddAnAddress() actually does the trim() anyway.
",defect (bug),closed,normal,3.3,Mail,3.2.1,normal,fixed,has-patch westi-likes,pavelevap@…
