aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 07926ddd84..67787a20f9 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -575,7 +575,15 @@ e_card_get_vobject (const ECard *card, gboolean assumeUTF8)
EIterator *iterator = e_list_get_iterator(card->email);
for ( ; e_iterator_is_valid(iterator) ;e_iterator_next(iterator) ) {
VObject *emailprop;
- emailprop = ADD_PROP_VALUE(vobj, VCEmailAddressProp, (char *) e_iterator_get(iterator));
+ char *e = (char *) e_iterator_get(iterator);
+ if (!strncmp (e, "<?xml", 5)) {
+ EDestination *dest = e_destination_import (e);
+ emailprop = ADD_PROP_VALUE(vobj, VCEmailAddressProp, e_destination_get_address (dest));
+ g_object_unref (dest);
+ }
+ else {
+ emailprop = ADD_PROP_VALUE(vobj, VCEmailAddressProp, e);
+ }
addProp (emailprop, VCInternetProp);
}
g_object_unref(iterator);