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

Bug#794738: GOsa's tests::is_email() function complains about <user>@intern mail address



Package: gosa
Severity: important
Version: 2.7.4+reloaded2-2
Usertags: debian-edu@lists.debian.org
User: debian-edu
X-Debbugs-Cc: debian-edu@lists.debian.org

While playing with e-Mails in GOsa, I realized that GOsa² globally complains about given emails that only have a TLD as domain part, e.g. "mike.gabriel@intern". However, such domain names are fully valid and the default in a Debian Edu network.

The issue requires to be fixed in gosa-core/include/utils/class_test.inc. The regexp that tries to match an email-like string should be changed from

  "/^[._a-z0-9\+-]+@[_a-z0-9-]+(\.[a-z0-9i-]+)(\.[a-z0-9-]+)*$/i

to something that applies more to RFC-5321 [1] / RFC-5322 (for further reading see [2]).

Greets,
Mike

[1] http://tools.ietf.org/html/rfc5321#section-2.3.5
[2] http://www.regular-expressions.info/email.html

--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgp5JoYXbHwOA.pgp
Description: Digitale PGP-Signatur


Reply to: