GNOME Bugzilla – Bug 269870
evolution-addressbook-export --format=csv does not work
Last modified: 2013-09-10 14:03:47 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:
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
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.
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
True; that's pretty pants - it looks like we get one \n per entry or somesuch, but beyond that: nothing.
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.
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.
Looks fine. Im commiting it, since i have verified it.
Srini: I tried 9-August-2005 build and it still crashes. Reopening the bug. (gdb) thread apply all bt
+ Trace 62320
Thread 1 (process 12217)
Fixed in CVS head.
sushma: perhaps also submit to 2.2.x, if there is another release planned? :-/
Verified with Evolution 2.3.8 - Fixed.