dovecot-2.0: deliver: Don't escape addresses with "." in local-p...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 12 19:37:42 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/e8fc7ee87410
changeset: 10036:e8fc7ee87410
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 12 12:37:35 2009 -0400
description:
deliver: Don't escape addresses with "." in local-part.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lda/main.c | 4 ++--
diffs (15 lines):
diff -r d7b3ed9814cb -r e8fc7ee87410 src/lda/main.c
--- 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 @@ 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