diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-10-05 01:15:41 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-10-05 01:15:41 +0800 |
commit | 4f9f4f44b49641a9308cf27684ceb532a4353871 (patch) | |
tree | a8675b8e36c32b8314bd04f5f782e96cd0f7c25a /camel/camel-mime-message.c | |
parent | 98be1e6b098e9f89e9d4bbb135a45c3d255f9103 (diff) | |
download | gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.tar gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.tar.gz gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.tar.bz2 gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.tar.lz gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.tar.xz gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.tar.zst gsoc2013-evolution-4f9f4f44b49641a9308cf27684ceb532a4353871.zip |
Use header_encode_phrase instead. (camel_mime_message_set_from): Same.
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com>
* camel-mime-message.c (camel_mime_message_set_reply_to): Use
header_encode_phrase instead.
(camel_mime_message_set_from): Same.
svn path=/trunk/; revision=5710
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index e8845ba263..452ddb50ff 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -239,7 +239,6 @@ camel_mime_message_get_sent_date (CamelMimeMessage *message) void camel_mime_message_set_reply_to (CamelMimeMessage *mime_message, const gchar *reply_to) { - CamelInternetAddress *addr; char *text; g_assert (mime_message); @@ -249,11 +248,7 @@ 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)); - addr = camel_internet_address_new (); - camel_address_decode (CAMEL_ADDRESS (addr), reply_to); - - text = camel_address_encode (CAMEL_ADDRESS (addr)); - camel_object_unref (CAMEL_OBJECT (addr)); + 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); } @@ -293,7 +288,6 @@ camel_mime_message_get_subject (CamelMimeMessage *mime_message) void camel_mime_message_set_from (CamelMimeMessage *mime_message, const gchar *from) { - CamelInternetAddress *addr; char *text; g_assert (mime_message); @@ -303,11 +297,7 @@ camel_mime_message_set_from (CamelMimeMessage *mime_message, const gchar *from) g_free (mime_message->from); mime_message->from = g_strstrip (g_strdup (from)); - addr = camel_internet_address_new (); - camel_address_decode (CAMEL_ADDRESS (addr), from); - - text = camel_address_encode (CAMEL_ADDRESS (addr)); - camel_object_unref (CAMEL_OBJECT (addr)); + text = header_encode_phrase (mime_message->from); CAMEL_MEDIUM_CLASS (parent_class)->set_header (CAMEL_MEDIUM (mime_message), "From", text); g_free (text); } |