dovecot-1.2: message_address_write() wrote extra @ if route was ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 1 07:31:18 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/228100f53e88
changeset: 9111:228100f53e88
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 01 00:31:13 2009 -0400
description:
message_address_write() wrote extra @ if route was specified.
diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
src/lib-mail/message-address.c | 1 -
src/lib-mail/message-address.h | 9 ++++++++-
diffs (30 lines):
diff -r 8a23ab43132a -r 228100f53e88 src/lib-mail/message-address.c
--- a/src/lib-mail/message-address.c Sun May 31 23:35:56 2009 -0400
+++ b/src/lib-mail/message-address.c Mon Jun 01 00:31:13 2009 -0400
@@ -386,7 +386,6 @@ void message_address_write(string_t *str
}
str_append_c(str, '<');
if (addr->route != NULL) {
- str_append_c(str, '@');
str_append(str, addr->route);
str_append_c(str, ':');
}
diff -r 8a23ab43132a -r 228100f53e88 src/lib-mail/message-address.h
--- a/src/lib-mail/message-address.h Sun May 31 23:35:56 2009 -0400
+++ b/src/lib-mail/message-address.h Mon Jun 01 00:31:13 2009 -0400
@@ -7,7 +7,14 @@ struct message_address {
struct message_address {
struct message_address *next;
- const char *name, *route, *mailbox, *domain;
+ /* display-name */
+ const char *name;
+ /* route string contains the @ prefix */
+ const char *route;
+ /* local-part */
+ const char *mailbox;
+ const char *domain;
+ /* there were errors when parsing this address */
bool invalid_syntax;
};
More information about the dovecot-cvs
mailing list