FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19094&edit=1

ID: 19094
Updated by: hgs@cs.columbia.edu
Reported By: hgs at cs dot columbia dot edu
Summary: Wrong email_regexp pattern
Status: Open
Type: Bug
Package: Mail_Mime
Operating System: Centos
Package Version: 1.8.2
PHP Version: 5.3.8
Roadmap Versions:
New Comment:

From my tests

$email_regexp = '([^\s<]+|("[^\r\n"]+"))@\S+';

avoids this problem.


Previous Comments:
------------------------------------------------------------------------

[2011-12-01 03:43:06] hgschulz

Description:
------------
According to RFC 2822 and RFC 5322, email addresses do not
have to contain a space between the quoted address and the
<> part, so that "John Doe"(no space
between " and <) is perfectly valid. Same for

Doe<doe@example.com>

The script puts the Doe in the email address, which then yields
the wrong escaping.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 1, '11 at 2:53a
activeDec 1, '11 at 2:53a
posts1
users1
websitepear.php.net

1 user in discussion

Hgs: 1 post

People

Translate

site design / logo © 2022 Grokbase