diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2005-06-25 18:19:49 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2005-06-25 18:19:49 +0800 |
commit | 036d6c5ee8afd6d08a317923953a3ee3366e0a94 (patch) | |
tree | aa7cb10cf38334530c0398e7e593c773b8dd251c /addressbook | |
parent | 6985fa5f68eef54d066334d2d3dcafb83e7e8084 (diff) | |
download | gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.tar gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.tar.gz gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.tar.bz2 gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.tar.lz gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.tar.xz gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.tar.zst gsoc2013-evolution-036d6c5ee8afd6d08a317923953a3ee3366e0a94.zip |
Setting TYPE=OTHER default parameter to email attribute. Fixes #240756.
svn path=/trunk/; revision=29585
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-migrate.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index f4043860ee..249f5e354d 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 2005-06-25 Sushma Rai <rsushma@novell.com> + * gui/component/addressbook-migrate.c (migrate_contacts): Setting + TYPE=OTHER default parameter to email attribute. Fixes #240756. + +2005-06-25 Sushma Rai <rsushma@novell.com> + * gui/contact-list-editor/Makefile.am: Linking to libevolution-addressbook. diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c index ac6e9cfac5..6492e1abbe 100644 --- a/addressbook/gui/component/addressbook-migrate.c +++ b/addressbook/gui/component/addressbook-migrate.c @@ -336,8 +336,16 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book) of attributes, so we need to go through and escape those ';'s. */ else if (!strcmp ("EMAIL", e_vcard_attribute_get_name (a))) { + GList *params; GList *v = e_vcard_attribute_get_values (a); + /* Add TYPE=OTHER if there is no type set */ + params = e_vcard_attribute_get_params (a); + if (!params) + e_vcard_attribute_add_param_with_value (a, + e_vcard_attribute_param_new (EVC_TYPE), + "OTHER"); + if (v && v->data) { if (!strncmp ((char*)v->data, "<?xml", 5)) { /* k, this is the nasty part. we glomb all the |