khard is a adressbook that runs in your terminal.
To sync the data using CardDAV you'll need vdirsyncer aswell.
pacman -S khard vdirsyncer - Install needed programs~/.config/vdirsyncer/config.
[general]
status_path = "~/.cache/vdirsyncer/status"
#contacts
[pair private_contacts]
a = "private_contacts_local"
b = "private_contacts_remote"
collections = ["from a", "from b"]
[storage private_contacts_local]
type = "filesystem"
path = "~/.local/share/pim/contacts"
fileext = ".vcf"
[storage private_contacts_remote]
type = "carddav"
url = "https://<url>"
username = "<username>"
password = "<password>"
auth = "basic"
vdirsyncer discover && vdirsyncer metasync - Initialize vdirsyncervdirsyncer sync - Synchronize the addressbook (put this into a crontab to update periodically)mkdir ~/.config/khard - add a directory for the configcp /usr/share/doc/khard/khard.conf.example ~/.config/khard/khard.conf - Copy the example configurationkhard.conf to your needsIt is possible to use your khard-addressbook in mutt. To see how it works check out the Mutt.