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 517125 - [RFE] Evolution should provide a command-line VCF importer for use by other applications
[RFE] Evolution should provide a command-line VCF importer for use by other a...
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Importers
3.4.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
: 309073 325621 (view as bug list)
Depends on:
Blocks: 339717
 
 
Reported: 2008-02-18 03:41 UTC by Suman Manjunath
Modified: 2013-11-10 01:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evolution-vcf-import (4.02 KB, patch)
2008-02-18 04:28 UTC, Suman Manjunath
needs-work Details | Review

Description Suman Manjunath 2008-02-18 03:41:24 UTC
summary says it all..
Comment 1 Suman Manjunath 2008-02-18 04:28:09 UTC
Created attachment 105472 [details] [review]
evolution-vcf-import

patch provides a command-line tool to import VCF data. patch can, atm, process
only a single VCARD component :(

patch can be improved to accept VCF data from files rather than the
command-line, but we already have a funky GUI importer to do that ;-)
Comment 2 André Klapper 2008-02-18 07:04:23 UTC
the address of the FSF in that patch is wrong and outdated :)
Comment 3 Milan Crha 2008-02-19 12:48:07 UTC
a) for comment #2. Is it same as in bug #517124?

b) you use opt_addressbook_folder_uri to print g_warning even it can be NULL.

c) report errors to user, thus he/she will know why it failed.

d) please add file import with wild cards support.
   I cannot imagine passing multiline vCard as parameter to the program, it can
   contains quotes and other funny characters, so I guess it can be damaged in 
   command line parser. Isn't stdin better for this?

e) exit versus return and N_() versus _() ?
Comment 4 Milan Crha 2008-02-27 14:58:48 UTC
As I was told on IRC:
f) please also check for duplicates, before adding new contact into the book
Comment 5 Bastien Nocera 2008-02-27 15:02:39 UTC
*** Bug 309073 has been marked as a duplicate of this bug. ***
Comment 6 Bastien Nocera 2008-02-27 15:30:23 UTC
Just like for bug 517124:
"
You should also add a .desktop file with NoDisplay=true so it can register the
mime-types.

It should probably also show the contact, and offer the user to either
dismiss the dialogue, or add it to their local addressbook. It should also check
for duplicates and show them to the user before adding them to the addressbook.
"
Comment 7 Matthew Barnes 2008-03-11 00:37:24 UTC
Bumping version to a stable release.
Comment 8 Akhil Laddha 2008-11-17 09:29:28 UTC
Is bug 325621 a dupe ?
Comment 9 Suman Manjunath 2008-11-17 14:37:48 UTC
*** Bug 325621 has been marked as a duplicate of this bug. ***
Comment 10 Akhil Laddha 2009-08-04 11:30:15 UTC
Downstream bug https://bugzilla.novell.com/show_bug.cgi?id=438677
Comment 11 chrysn 2010-03-24 19:41:22 UTC
as of 2.29.92.1 (as packaged in debian as 2.29.92.1-1), the new importer only works if the working directory of a previously running evolution instance is the same as the instance trying to import (at least if relative file names are used).

the second instance should either detect that its arguments are supposed to mean a file and convert to absolute paths, or send its current working directory to the main instance.

this situation typically does not arise if all program starts come from guis (say, gnome panel launcher and file imported by firefox), but can easily happen if evolution is called from the command line.


additionally, i'd like to suggest to add a small preview to the import assistant (at least event title and date) -- otherwise, events are blindly imported into a calendar and the user might not even know how the event is called.
Comment 12 Bastien Nocera 2013-11-10 01:27:07 UTC
The original request works (double-click a vcf file, an import dialogue shows up). I opened bug 711758 about comment 11.