[dovecot-cvs] dovecot/src/lib-mail message-address.c,1.12,1.13
cras at dovecot.org
cras at dovecot.org
Fri Apr 8 14:18:00 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv20892
Modified Files:
message-address.c
Log Message:
local-part in message address can be quoted-string as well.
Index: message-address.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-address.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- message-address.c 24 Mar 2005 22:27:38 -0000 1.12
+++ message-address.c 8 Apr 2005 11:17:58 -0000 1.13
@@ -42,7 +42,11 @@
return 0;
str_truncate(ctx->str, 0);
- if ((ret = rfc822_parse_dot_atom(&ctx->parser, ctx->str)) < 0)
+ if (*ctx->parser.data == '"')
+ ret = rfc822_parse_quoted_string(&ctx->parser, ctx->str);
+ else
+ ret = rfc822_parse_dot_atom(&ctx->parser, ctx->str);
+ if (ret < 0)
return -1;
ctx->addr.mailbox = p_strdup(ctx->pool, str_c(ctx->str));
More information about the dovecot-cvs
mailing list