changeset 8358:7c19e829c414 HEAD

deliver: Don't escape addresses with "." in local-part.
author Timo Sirainen <tss@iki.fi>
date Mon, 12 Oct 2009 12:36:38 -0400
parents fe6879e2a497
children 427994458587
files src/deliver/deliver.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/deliver/deliver.c	Thu Oct 01 16:40:32 2009 -0400
+++ b/src/deliver/deliver.c	Mon Oct 12 12:36:38 2009 -0400
@@ -562,9 +562,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));
 		}