aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-06 05:26:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-06 05:26:28 +0800
commit19d6689653059b95dddabd8a05abf73558138137 (patch)
tree9ccd6243465ad4f2836309f823e52903a7d73120 /camel/camel-mime-message.c
parent6abc02d6b9260bb8aa191f93d003e5bd8eedd393 (diff)
downloadgsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.tar
gsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.tar.gz
gsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.tar.bz2
gsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.tar.lz
gsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.tar.xz
gsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.tar.zst
gsoc2013-evolution-19d6689653059b95dddabd8a05abf73558138137.zip
Modified to not encode space chars in the middle of a line. (isblank): New
2000-10-05 Jeffrey Stedfast <fejj@helixcode.com> * camel-mime-utils.c (quoted_encode_step): Modified to not encode space chars in the middle of a line. (isblank): New macro if we're not on a system with the GNU isblank extension. * camel-mime-message.c (camel_mime_message_set_from): Reversed my changes, don't header_encode_phrase - it generates broken headers. (camel_mime_message_set_reply_to): Same. svn path=/trunk/; revision=5747
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r--camel/camel-mime-message.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 452ddb50ff..690f655ca3 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -239,8 +239,6 @@ camel_mime_message_get_sent_date (CamelMimeMessage *message)
void
camel_mime_message_set_reply_to (CamelMimeMessage *mime_message, const gchar *reply_to)
{
- char *text;
-
g_assert (mime_message);
/* FIXME: check format of string, handle it nicer ... */
@@ -248,9 +246,8 @@ camel_mime_message_set_reply_to (CamelMimeMessage *mime_message, const gchar *re
g_free (mime_message->reply_to);
mime_message->reply_to = g_strstrip (g_strdup (reply_to));
- text = header_encode_phrase (mime_message->reply_to);
- CAMEL_MEDIUM_CLASS (parent_class)->set_header (CAMEL_MEDIUM (mime_message), "Reply-To", text);
- g_free (text);
+ CAMEL_MEDIUM_CLASS (parent_class)->set_header (CAMEL_MEDIUM (mime_message), "Reply-To",
+ mime_message->reply_to);
}
const gchar *
@@ -288,8 +285,6 @@ camel_mime_message_get_subject (CamelMimeMessage *mime_message)
void
camel_mime_message_set_from (CamelMimeMessage *mime_message, const gchar *from)
{
- char *text;
-
g_assert (mime_message);
/* FIXME: check format of string, handle it nicer ... */
@@ -297,9 +292,8 @@ camel_mime_message_set_from (CamelMimeMessage *mime_message, const gchar *from)
g_free (mime_message->from);
mime_message->from = g_strstrip (g_strdup (from));
- text = header_encode_phrase (mime_message->from);
- CAMEL_MEDIUM_CLASS (parent_class)->set_header (CAMEL_MEDIUM (mime_message), "From", text);
- g_free (text);
+ CAMEL_MEDIUM_CLASS (parent_class)->set_header (CAMEL_MEDIUM (mime_message), "From",
+ mime_message->from);
}
const gchar *