dovecot-1.1: message_address_write() wrote extra @ if route was ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 1 07:31:19 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/daa507054b09
changeset: 8297:daa507054b09
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 01 00:30:34 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 9e16501b3819 -r daa507054b09 src/lib-mail/message-address.c
--- a/src/lib-mail/message-address.c Sun May 31 20:36:37 2009 -0400
+++ b/src/lib-mail/message-address.c Mon Jun 01 00:30:34 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 9e16501b3819 -r daa507054b09 src/lib-mail/message-address.h
--- a/src/lib-mail/message-address.h Sun May 31 20:36:37 2009 -0400
+++ b/src/lib-mail/message-address.h Mon Jun 01 00:30:34 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