Bug#794738: GOsa's tests::is_email() function complains about <user>@intern mail address
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Thu Aug 6 06:26:28 UTC 2015
Package: gosa
Severity: important
Version: 2.7.4+reloaded2-2
Usertags: debian-edu at lists.debian.org
User: debian-edu
X-Debbugs-Cc: debian-edu at 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 at 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 at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/debian-edu-pkg-team/attachments/20150806/249ccf89/attachment.sig>
More information about the Debian-edu-pkg-team
mailing list