diff options
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index 5edc1242a5..a7fd33dc64 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -672,24 +672,17 @@ get_embedded_for_component (const char *iid, MailDisplay *md) * to pass a bunch of useful things to all embedded controls. */ const CamelInternetAddress *from; - const MailConfigIdentity *id; - - id = mail_config_get_default_identity (); + char *from_address; + CORBA_exception_init (&ev); - if (id){ - char *from_address; - - - from = camel_mime_message_get_from (md->current_message); - from_address = camel_address_encode((CamelAddress *)from); - bonobo_property_bag_client_set_value_string ( - prop_bag, "from_address", - from_address, &ev); - bonobo_property_bag_client_set_value_string ( - prop_bag, "my_address", - id ? id->address : "", &ev); - g_free(from_address); - } + + from = camel_mime_message_get_from (md->current_message); + from_address = camel_address_encode((CamelAddress *)from); + bonobo_property_bag_client_set_value_string ( + prop_bag, "from_address", + from_address, &ev); + g_free(from_address); + Bonobo_Unknown_unref (prop_bag, &ev); CORBA_exception_free (&ev); } |