[Tickets #1577] unable to set sender to [@] error

bugs at bugs.horde.org bugs at bugs.horde.org
Sat Mar 19 11:48:56 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1577
-----------------------------------------------------------------------
 Ticket             | 1577
 Updated By         | gwm at haxent.com.br
 Summary            | unable to set sender to [@] error
 Queue              | IMP
 Version            | 4.0.2
 State              | Feedback
 Priority           | 2. Medium
 Type               | Bug
 Owners             | Jan Schneider
-----------------------------------------------------------------------


gwm at haxent.com.br (2005-03-19 11:48) wrote:

Ok, I tried tracking down this bug. I set my username to "Antônico César
Júnior Só", which is guaranteed to fail here.

The validation of the "From" address fails in _validateAtom() in PEAR's
Mail/RFC822.php. The problematic atom is "=?utf-8?b?Q8Opc2FyIA==?=" which
appears to correspond to César and the test in which this atom fails is
this:

if (preg_match('/[\\x00-\\x1F]+/', $atom)) {
    return false;
}

What's funny is that reducing the user's name to two names (Antônico César)
appears to work, e.g. no control characters are found even though the
encoded form should be the same as far as I know.

If I disable Mail_RFC822->validate the e-mail is sent normally and IMP can
read the From header normally, but it's probably not RFC-compatible.

This is related to this: http://pear.php.net/bugs/bug.php?id=2242





More information about the bugs mailing list