From: Timo Sirainen Date: Mon, 12 Oct 2009 16:37:35 +0000 (-0400) Subject: deliver: Don't escape addresses with "." in local-part. X-Git-Tag: 2.0.alpha1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f87b889beb00a7634b1f6f9ef28ccf88e365cb6;p=thirdparty%2Fdovecot%2Fcore.git deliver: Don't escape addresses with "." in local-part. --HG-- branch : HEAD --- diff --git a/src/lda/main.c b/src/lda/main.c index 17d29bed68..1bc1d12e97 100644 --- a/src/lda/main.c +++ b/src/lda/main.c @@ -49,9 +49,9 @@ static const char *escape_local_part(const char *local_part) { 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)); }