After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 269870 - evolution-addressbook-export --format=csv does not work
evolution-addressbook-export --format=csv does not work
Status: VERIFIED FIXED
Product: evolution
Classification: Applications
Component: Contacts
2.2.x (obsolete)
Other All
: Urgent critical
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
evolution[interop]
Depends on:
Blocks:
 
 
Reported: 2004-11-24 06:26 UTC by Wind Li
Modified: 2013-09-10 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Wind Li 2004-11-24 06:26:45 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
OOo use evolution-addressbook-export --format=csv to export evolution
addressbooks, but now it does not work yet. 
see http://qa.openoffice.org/issues/show_bug.cgi?id=34909.

Steps to reproduce the problem:
1. 
2. 
3. 

Actual Results:


Expected Results:


How often does this happen? 


Additional Information:
Comment 1 André Klapper 2005-03-24 15:13:39 UTC
still valid in evolution-2.2.0.0.200503210410-0.snap.ximian.10.1;
retargetting to 2.3.

error is:

** (evolution:7401): WARNING **: FIXME: wait for completion unimplemented
Comment 2 Michael Meeks 2005-05-13 11:13:26 UTC
So - the binary is still shipping in evolution:

michael@linux:~/conferences> rpm -ql evolution | grep addressbook
...
/opt/gnome/libexec/evolution/2.2/evolution-addressbook-export

It's just not in the global path now. You'll need to try executing it there I think.
Comment 3 Frank Schönheit, Sun Microsystems 2005-05-13 12:14:26 UTC
Yes, but it seems the tool does not recognize the --format=csv switch anymore,
no matter if in the path or not :-\.
--format=vcard works as expected, but --format=csv just produces an empty output
Comment 4 Michael Meeks 2005-05-13 13:52:36 UTC
True; that's pretty pants - it looks like we get one \n per entry or somesuch,
but beyond that: nothing.
Comment 5 Michael Meeks 2005-05-31 09:13:46 UTC
So - this is almost certainly fixed by this patch - not build/tested but:

--- evolution-addressbook-export-list-cards.c   24 May 2004 18:52:39 -0000      1.4
+++ evolution-addressbook-export-list-cards.c   31 May 2005 09:12:59 -0000
@@ -590,7 +590,12 @@ output_n_cards_file (FILE * outputfile, 
                        g_free (vcard);
                }
        } else if (format == CARD_FORMAT_CSV) {
-               gchar *csv_fields_name = e_contact_csv_get_header_line
(pre_defined_fields);
+               gchar *csv_fields_name;
+
+               if (!pre_defined_fields)
+                       set_pre_defined_field (&pre_defined_fields);
+
+               csv_fields_name = e_contact_csv_get_header_line
(pre_defined_fields);
                fprintf (outputfile, "%s\n", csv_fields_name);
                g_free (csv_fields_name);
 
Not having this working is hurting our Sun friends - lets get this patch
up-stream ASAP.
Comment 6 André Klapper 2005-06-02 11:49:03 UTC
imo this could also go into 2.2.3 (and not only 2.3).
the faster, the better, because currently only exporting it to vcards is 
possible and csv is missing.
Comment 7 Srinivasa Ragavan 2005-07-29 05:44:11 UTC
Looks fine. Im commiting it, since i have verified it.
Comment 8 Nagappan Alagappan 2005-08-09 10:46:09 UTC
Srini: I tried 9-August-2005 build and it still crashes. Reopening the bug.

(gdb) thread apply all bt

Thread 1 (process 12217)

  • #0 free
    from /lib/tls/libc.so.6
  • #1 g_free
    from /opt/gnome/lib/libglib-2.0.so.0
  • #2 e_contact_csv_get
    at evolution-addressbook-export-list-cards.c line 405
  • #3 e_contact_to_csv
    at evolution-addressbook-export-list-cards.c line 460
  • #4 e_contact_get_csv
    at evolution-addressbook-export-list-cards.c line 480
  • #5 output_n_cards_file
    at evolution-addressbook-export-list-cards.c line 604
  • #6 action_list_cards
    at evolution-addressbook-export-list-cards.c line 672
  • #7 action_list_cards_init
    at evolution-addressbook-export-list-cards.c line 795
  • #8 main
    at evolution-addressbook-export.c line 150

Comment 9 Sushma Rai 2005-08-22 09:56:49 UTC
Fixed in CVS head.
Comment 10 André Klapper 2005-08-22 11:33:30 UTC
sushma: perhaps also submit to 2.2.x, if there is another release planned? :-/
Comment 11 Nagappan Alagappan 2005-08-26 10:48:29 UTC
Verified with Evolution 2.3.8 - Fixed.