no longer need to set a my address property
2001-07-11 JP Rosevear <jpr@ximian.com> * mail-display.c (get_embedded_for_component): no longer need to set a my address property svn path=/trunk/; revision=11019
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2001-07-11 JP Rosevear <jpr@ximian.com>
|
||||
|
||||
* mail-display.c (get_embedded_for_component): no longer need to
|
||||
set a my address property
|
||||
|
||||
2001-07-10 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* mail-display.c (link_copy_location): Set the CLIPBOARD
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user