Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9423:c50acaf1f09f 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 | 73c4a7d325fe |
children | bf11870ecb02 |
files | src/deliver/deliver.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ { 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)); }