aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-utils.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6a0c566135..dd91b0007d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-31 Not Zed <NotZed@Ximian.com>
+
+ * camel-mime-utils.c (header_decode_domain): Oops, this was
+ converting foo@[blah] to foo@[ blah ], fixed.
+
2002-01-30 Jeffrey Stedfast <fejj@ximian.com>
* providers/pop3/camel-pop3-provider.c: Use "pop" instead of
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 46ad1595b0..9f0c5fa662 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -2238,7 +2238,7 @@ header_decode_domain(const char **in)
header_decode_lwsp(&inptr);
while (go) {
if (*inptr == '[') { /* domain literal */
- domain = g_string_append(domain, "[ ");
+ domain = g_string_append_c(domain, '[');
inptr++;
header_decode_lwsp(&inptr);
start = inptr;
@@ -2247,7 +2247,7 @@ header_decode_domain(const char **in)
inptr++;
}
if (*inptr == ']') {
- domain = g_string_append(domain, " ]");
+ domain = g_string_append_c(domain, ']');
inptr++;
} else {
w(g_warning("closing ']' not found in domain: %s", *in));