aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-14 05:30:16 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-14 05:30:16 +0800
commit8c466a7b1c6b54816450ffca209eb5610331d8c2 (patch)
tree87b3d3f47350eac643e59c6db9a298a715fe251d /composer
parent0e900049a815c3e6b4c6ab4cad874792270dc5ae (diff)
downloadgsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.tar
gsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.tar.gz
gsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.tar.bz2
gsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.tar.lz
gsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.tar.xz
gsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.tar.zst
gsoc2013-evolution-8c466a7b1c6b54816450ffca209eb5610331d8c2.zip
Use the camel-internet-address code to format the address rather than
2001-02-13 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (corba_recipientlist_to_glist): Use the camel-internet-address code to format the address rather than doing it the broken way. svn path=/trunk/; revision=8210
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/evolution-composer.c11
2 files changed, 11 insertions, 6 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 29afb30a6f..5d6819c395 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,9 @@
+2001-02-13 Jeffrey Stedfast <fejj@ximian.com>
+
+ * evolution-composer.c (corba_recipientlist_to_glist): Use the
+ camel-internet-address code to format the address rather than
+ doing it the broken way.
+
2001-02-10 Jeffrey Stedfast <fejj@ximian.com>
* evolution-composer.c (impl_Composer_set_headers): Updated. We
diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c
index 08c26a7aeb..72afc6930e 100644
--- a/composer/evolution-composer.c
+++ b/composer/evolution-composer.c
@@ -53,11 +53,10 @@ corba_recipientlist_to_glist (const GNOME_Evolution_Composer_RecipientList *cl)
/* Let's copy this code into yet another place! */
if (*recip->name) {
- str = g_strdup_printf ("\"%s\" <%s>",
- recip->name, recip->address);
+ str = camel_internet_address_format_address (recip->name, recip->address);
} else
str = g_strdup (recip->address);
-
+
gl = g_list_prepend (gl, str);
}
@@ -248,12 +247,12 @@ init (EvolutionComposer *composer)
if (account->id)
sig_file = account->id->signature;
-
+
if (sig_file)
composer->composer = e_msg_composer_new_with_sig_file (sig_file, send_html);
else
composer->composer = e_msg_composer_new ();
-
+
gtk_signal_connect (GTK_OBJECT (composer->composer), "send",
GTK_SIGNAL_FUNC (send_cb), NULL);
gtk_signal_connect (GTK_OBJECT (composer->composer), "postpone",
@@ -318,7 +317,7 @@ evolution_composer_new (void)
POA_GNOME_Evolution_Composer *servant;
CORBA_Environment ev;
GNOME_Evolution_Composer corba_object;
-
+
servant = (POA_GNOME_Evolution_Composer *) g_new0 (BonoboObjectServant, 1);
servant->vepv = &Composer_vepv;