Copyright (c) 2012-2013, Peter Kahl. All rights reserved. www.colossalmind.com
This PHP class extracts real name and email address from email address header.
It is optimised to process both single and multiple email address headers.
This class was nominated for INNOVATION AWARD (September 2012) at
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).
1.0.0 ..... 2012-05-29
1.0.1 ..... 2012-11-02
Added link to repo on GitHub.
Renamed the class from "colossal_mind_extract_name_from_email_address"
1.0.2 ..... 2012-11-29
Fixed typo where _ should have been - (hyphen) on line 58.
1.1.0 ..... 2013-10-21
Added ability to decode encoded header string such as
1.1.1 ..... 2013-10-21
Added ability to extract from addresses such as
"user firstname.lastname@example.org <email@example.com>".
1.1.2 ..... 2013-10-29
Added stripping of quotation marks from addresses such as
Added some names to name dictionary.
1.2.0 ..... 2013-11-05
Added method to extract email address. Bug fix.