From 8c466a7b1c6b54816450ffca209eb5610331d8c2 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 13 Feb 2001 21:30:16 +0000 Subject: Use the camel-internet-address code to format the address rather than 2001-02-13 Jeffrey Stedfast * 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 --- composer/ChangeLog | 6 ++++++ composer/evolution-composer.c | 11 +++++------ 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'composer') 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 + + * 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 * 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; -- cgit