diff options
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-part.c | 13 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 9 |
3 files changed, 10 insertions, 17 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index fbe07b9cee..ef231bad33 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-01-21 Jeffrey Stedfast <fejj@ximian.com> + + * camel-mime-utils.c (header_param_list_format_append): Make the + output a little prettier. Okay, so I'm anal... + 2001-01-21 Not Zed <NotZed@Ximian.com> * camel-filter-driver.h: Added an exception to diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 4f44b4edd6..bb9489ad4a 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -221,19 +221,6 @@ process_header(CamelMedium *medium, const char *header_name, const char *header_ return TRUE; } -/* Note: It is my understanding that we need to encode the values here as they are - not being encoded at the header_raw_* level. */ - -/* - NO: This is absolutely wrong. The medium interface is entirely raw. - You cannot just go blingingly encoding headers because it depends entirely - on the header being encoded. process_header decodes and mirrors the - known headers, appropriately, and we just add this raw header to our - list. - - Please read the comments, they explained it already!!!!!!! -*/ - static void set_header (CamelMedium *medium, const char *header_name, const void *header_value) { diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 04fd6c119b..b7a14992d8 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2345,11 +2345,12 @@ header_param_list_format_append(GString *out, struct _header_param *p) while (p) { int here = out->len; if (len+strlen(p->name)+strlen(p->value)>60) { - out = g_string_append(out, "\n\t"); + out = g_string_append(out, ";\n\t"); len = 0; - } - - g_string_sprintfa(out, "; %s=", p->name); + } else + out = g_string_append (out, "; "); + + g_string_sprintfa(out, "%s=", p->name); for (ch = p->value; *ch; ch++) { if (is_tspecial(*ch)) |