changeset 10036:e8fc7ee87410 HEAD

deliver: Don't escape addresses with "." in local-part.
author Timo Sirainen <tss@iki.fi>
date Mon, 12 Oct 2009 12:37:35 -0400
parents d7b3ed9814cb
children 45cdc5539c93
files src/lda/main.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lda/main.c	Sat Oct 10 16:25:41 2009 -0400
+++ b/src/lda/main.c	Mon Oct 12 12:37:35 2009 -0400
@@ -49,9 +49,9 @@
 {
 	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));
 		}