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