aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8d501a7..f2690fb 100644
--- a/README.md
+++ b/README.md
@@ -10,9 +10,14 @@ Mirrored at https://github.com/fasterit/findcontact
**findcontact** is a small perl script that enables searching with a set of regexes to find contacts within a (large) .vcf file.
Obtaining a contacts.vcf depends on which CardDAV server / client you run.
-With [radicale](http://radicale.org/) you can just copy the file off the server into the directory where your findcontact resides. Or copy / link findcontact into the correct radicale collections subdirectory.
+With [radicale 1.x](http://radicale.org/) you could just copy the file off the server into the directory where your findcontact resides. Or copy / link findcontact into the correct radicale collections subdirectory.
-Unfortunately every .vcf client decides on a specific set of attributes to support and the [Inverse Sogo Connector](https://sogo.nu/download.html#/frontends) everybody uses for getting the Thunderbird address book synced can't search over all fields. So if you want to search for a phone number you're out of luck. Unless you run findcontact :).
+Unfortunately radicale version 2 (and later) switched to a [file-per-contact storage system](https://radicale.org/2.1.html#documentation/migration-from-1xx-to-2xx/storage) that needs some magic to produce a single .vcf file again,
+e.g. using GNU sed to make sure each VCARD ends with a \n:
+
+ $ sed -e '$G' /var/lib/radicale/collections/collection-root/user/contacts.vcf/* > ~/contacts.vcf
+
+Every .vcf client decides on a specific set of attributes to support and the [Inverse Sogo Connector](https://sogo.nu/download.html#/frontends) everybody uses for getting the Thunderbird address book synced can't search over all fields. So if you want to search for a phone number you're out of luck. Unless you run findcontact :).
It has been written to only depend on perl modules that ship with a default installation and does __not__ depend on Text::vCard::Addressbook or the like.

© 2014-2024 Faster IT GmbH | imprint | privacy policy