dovecot-1.2: deliver: Don't escape addresses with "." in local-p...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 12 19:36:45 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/c50acaf1f09f
changeset: 9423:c50acaf1f09f
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 12 12:36:38 2009 -0400
description:
deliver: Don't escape addresses with "." in local-part.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/deliver/deliver.c |    4 ++--

diffs (15 lines):

diff -r 73c4a7d325fe -r c50acaf1f09f src/deliver/deliver.c
--- a/src/deliver/deliver.c	Fri Oct 09 20:33:27 2009 -0400
+++ b/src/deliver/deliver.c	Mon Oct 12 12:36:38 2009 -0400
@@ -579,9 +579,9 @@ static const char *escape_local_part(con
 {
 	const char *p;
 
-	/* if there are non-atext chars, we need to return quoted-string */
+	/* if local_part isn't dot-atom-text, we need to return quoted-string */
 	for (p = local_part; *p != '\0'; p++) {
-		if (!IS_ATEXT(*p)) {
+		if (!IS_ATEXT(*p) && *p != '.') {
 			return t_strdup_printf("\"%s\"",
 					       str_escape(local_part));
 		}


More information about the dovecot-cvs mailing list