matt

user
matt
provider
wronka.org

Quec.es Jabber Blog — Return to list of users.

matt watches:

What's happening?

matt (1), total (1)

Wednesday, March 6 2013

GnuPG and eMail Address Validation
[04:40:40] Psi.generay It's bothered me for some time that GNU Privacy Guard (gpg or gnupg) rejects valid eMail addresses. It feels like a piece of software that should get eMail validation correct, despite how often others get it wrong.

It turns out that GPG actually let's any non-ASCII character through ostensibly for PGP compatability. I patched the validation routines to also allow some cases it was currently rejecting. This means that although this isn't a 100% to-spec validation routine, it should at least allow all valid cases.

http://matt.wronka.org/stuff/projects/icpp/gnupg/gnupg-1.4.13-emailvalidator.diff