From: Vincent Bernat Date: Fri, 5 Feb 2010 18:51:29 +0000 (+0000) Subject: RFC 5321, section 4.5.3.1, asks to not impose any limits on length if X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b472dc921af0f6af09816846259c5c5c743798af;p=roundcube.git RFC 5321, section 4.5.3.1, asks to not impose any limits on length if possible. We respect this by dropping limitation of the local-part of an email address. Closes: #568360, #568537. --- diff --git a/debian/changelog b/debian/changelog index a2016d4..198c865 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +roundcube (0.3.1-3) UNRELEASED; urgency=low + + * RFC 5321, section 4.5.3.1, asks to not impose any limits on length if + possible. We respect this by dropping limitation of the local-part of + an email address. Closes: #568360, #568537. + + -- Vincent Bernat Fri, 05 Feb 2010 19:50:51 +0100 + roundcube (0.3.1-2) unstable; urgency=low * Fix VCS links in debian/control, thanks to Torsten Landschoff. diff --git a/debian/patches/dont-limit-email-local-part.patch b/debian/patches/dont-limit-email-local-part.patch new file mode 100644 index 0000000..c9852aa --- /dev/null +++ b/debian/patches/dont-limit-email-local-part.patch @@ -0,0 +1,12 @@ +To fix #568360 and #568537, don't limit local part size. +--- roundcube-0.3.1/program/include/main.inc~ 2009-10-31 14:44:19.751802878 +0100 ++++ roundcube-0.3.1/program/include/main.inc 2010-02-05 19:46:12.000000000 +0100 +@@ -1427,7 +1427,7 @@ + return false; + + // Check that there's one @ symbol, and that the lengths are right +- if (!preg_match('/^([^@]{1,64})@([^@]{1,255})$/', $email, $email_array)) ++ if (!preg_match('/^([^@]+)@([^@]{1,255})$/', $email, $email_array)) + return false; + + // Check local part diff --git a/debian/patches/series b/debian/patches/series index 7b7b57c..a8f436f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ use_pspell.patch loginbox-size.patch changeset_r3170.patch changeset_r3202.patch +dont-limit-email-local-part.patch