Re: [Evolution-hackers] mail address validation



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey :-)

On 21.01.2010 19:17, Roberto -MadBob- Guido wrote:
> In the first version of the patch
> ( http://bugzilla-attachments.gnome.org/attachment.cgi?id=146701 ) I've
> provided a routine built on regular expressions (regcomp() and
> regexec()). Opinions about that?
> 
Thanks for you contribution. However, it is way too strict.

It misses all the interesting characters that are allowed in the local
part, i.e.:

    ! $ & * - = ^ ` | ~ # % ' + / ? _ { }

RFC 5322 (4.3.1) says the local part is a dot-atom, 3.2.3 says a
dot-atom is a atext which includes alphanumeric plus the characters
mentioned above.

I'd be delighted to see an implementation that parses all corner cases,
i.e. foo/bar=baz example com or !foo%bar?baz*qux example com, correctly.
That might be a challenging Summer of Code assignment ;-)

Happy Hacking ;-)
  Tobi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktYsaMACgkQPuBX/6ogjZ6xBQCgrkvs7pKQ6SKARF2ja20Wt0Bk
pb4AoISpqLFf27yDVaiS3aAIJt8tMQqM
=0XVy
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]