aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-22 11:46:57 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-22 11:46:57 +0800
commit18e2b2ebc530d125c0a4f814c13494c62396b729 (patch)
treec30bd3051890a226a6cfd7812b532e9ad8fe4cb7 /camel
parent4404cde3fc7f27f9dc348d388a4cad22af302ea0 (diff)
downloadgsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.tar
gsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.tar.gz
gsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.tar.bz2
gsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.tar.lz
gsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.tar.xz
gsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.tar.zst
gsoc2013-evolution-18e2b2ebc530d125c0a4f814c13494c62396b729.zip
Make the output a little prettier. Okay, so I'm anal...
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... svn path=/trunk/; revision=7692
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-part.c13
-rw-r--r--camel/camel-mime-utils.c9
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))