aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-17 04:04:11 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-17 04:04:11 +0800
commitac81c90d1e63beff476114bb288edd0844e5ca06 (patch)
treef5347ad389d0b0b3d1dcec27e318fe50aca76b66
parentf6e7f1d92068022f2edd5193710a74eafc81e6c9 (diff)
downloadgsoc2013-evolution-ac81c90d1e63beff476114bb288edd0844e5ca06.tar.gz
gsoc2013-evolution-ac81c90d1e63beff476114bb288edd0844e5ca06.tar.zst
gsoc2013-evolution-ac81c90d1e63beff476114bb288edd0844e5ca06.zip
Use other folders to import into
svn path=/trunk/; revision=11135
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/evolution-vcard-importer.c11
2 files changed, 15 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 45580033a5..f20a90729d 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-16 Iain Holmes <iain@ximian.com>
+
+ * backend/pas/evolution-vcard-importer.c (ebook_create): Don't just
+ use the default directory. Use the directory that is passed into the
+ load file function.
+
2001-07-15 Christopher James Lahey <clahey@ximian.com>
* backend/ebook/e-destination.c (e_destination_set_string):
diff --git a/addressbook/backend/ebook/evolution-vcard-importer.c b/addressbook/backend/ebook/evolution-vcard-importer.c
index caed08b8e0..c74739aa27 100644
--- a/addressbook/backend/ebook/evolution-vcard-importer.c
+++ b/addressbook/backend/ebook/evolution-vcard-importer.c
@@ -18,6 +18,7 @@ static BonoboGenericFactory *factory = NULL;
typedef struct {
char *filename;
+ char *folderpath;
GList *cardlist;
GList *iterator;
EBook *book;
@@ -47,6 +48,7 @@ static void
ebook_create (VCardImporter *gci)
{
gchar *path, *uri;
+ gchar *epath;
gci->book = e_book_new ();
@@ -57,11 +59,15 @@ ebook_create (VCardImporter *gci)
return;
}
- path = g_concat_dir_and_file (g_get_home_dir (),
- "evolution/local/Contacts/addressbook.db");
+ path = g_concat_dir_and_file (g_get_home_dir (), "evolution/local");
uri = g_strdup_printf ("file://%s", path);
g_free (path);
+ epath = e_path_to_physical (uri, gci->folderpath);
+ g_free (uri);
+ uri = g_strdup_printf ("%s/addressbook.db", epath);
+ g_free (epath);
+
if (! e_book_load_uri (gci->book, uri, book_open_cb, gci)) {
printf ("error calling load_uri!\n");
}
@@ -184,6 +190,7 @@ load_file_fn (EvolutionImporter *importer,
gci = (VCardImporter *) closure;
gci->filename = g_strdup (filename);
+ gci->folderpath = g_strdup (folderpath);
gci->cardlist = NULL;
gci->iterator = NULL;
gci->ready = FALSE;
all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * Fix INDEX by really fixing the kde4-l10n portsbapt2013-07-101-0/+1 * KDE4 l10n fixes.rakuco2013-07-102-3/+1 * Update the KDE Software Compilation to 4.10.5.rakuco2013-07-051-2/+2 * Update to KDE SC 4.10.4, proudly presented by the KDE on FreeBSD team.rakuco2013-07-031-2/+2 * KDE/FreeBSD team presents KDE SC 4.10.3 ports!makc2013-05-192-4/+2 * KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-273-15/+11 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-043-18/+35 * KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-152-3/+2 * - update png to 1.5.10dinoex2012-06-011-0/+1 * KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-253-10/+10 * - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-161-0/+1 * The KDE/FreeBSD team is pleased to announce KDE SC 4.7.4, whichavilla2012-01-251-2/+2 * The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-141-2/+2 * The KDE/FreeBSD team is pleased to announce KDE Software Compilationavilla2011-10-172-7/+37 * Update KDE Software Compilation ports to 4.6.5makc2011-07-082-2/+38 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.4. Read fullavilla2011-06-141-2/+2 * Update KDE Software Compilation ports to 4.6.3makc2011-05-172-2/+28 * The FreeBSD KDE Team is pleased to announce April updates for KDEavilla2011-04-072-2/+19 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-25