diff options
author | Christian Schaarschmidt <schaarsc@gmx.de> | 2014-05-06 20:31:50 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-05-06 20:31:50 +0800 |
commit | c2de4087369147ed6797f6b7866629ff9da19dfc (patch) | |
tree | d9d91c19f4250f5b87bb6a18629d3a8f5465c734 /addressbook/tools | |
parent | 5306c9f8b0f3bd173b7864d1ba284ead4e5ffadd (diff) | |
download | gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.tar gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.tar.gz gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.tar.bz2 gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.tar.lz gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.tar.xz gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.tar.zst gsoc2013-evolution-c2de4087369147ed6797f6b7866629ff9da19dfc.zip |
Bug #653892 - Allow to enter more than four email addresses
Diffstat (limited to 'addressbook/tools')
-rw-r--r-- | addressbook/tools/evolution-addressbook-export-list-cards.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/tools/evolution-addressbook-export-list-cards.c b/addressbook/tools/evolution-addressbook-export-list-cards.c index 3faf245859..c6261f6c53 100644 --- a/addressbook/tools/evolution-addressbook-export-list-cards.c +++ b/addressbook/tools/evolution-addressbook-export-list-cards.c @@ -461,6 +461,17 @@ e_contact_get_csv (EContact *contact, GSList *csv_all_fields) { gchar *aline; + GList *emails; + guint n_emails; + gchar *full_name; + + emails = e_contact_get_attributes (contact, E_CONTACT_EMAIL); + n_emails = g_list_length (emails); + full_name = e_contact_get (contact, E_CONTACT_FULL_NAME); + if (n_emails > 4) + g_warning ("%s: only 4 out of %i emails have been exported", full_name, n_emails); + g_free (full_name); + g_list_free_full (emails, (GDestroyNotify) e_vcard_attribute_free); aline = e_contact_to_csv (contact, csv_all_fields); return aline; |