switch from abook to khard

This commit is contained in:
Felix Van der Jeugt 2018-11-21 16:34:11 +01:00
parent d6f0da270f
commit 7e1d59a684
No known key found for this signature in database
GPG Key ID: 58B209295023754D
4 changed files with 69 additions and 7 deletions

2
abook/.gitignore vendored
View File

@ -1,2 +0,0 @@
addressbook
addressbook~

View File

@ -4,7 +4,7 @@ periodic_hook_frequency = 60
attachment_prefix = /data/temporary
prefer_plaintext = True
editor_cmd = "st -e vis"
editor_cmd = "dvtm 'vis %s'"
[accounts]
@ -19,7 +19,10 @@ editor_cmd = "st -e vis"
sign_by_default = False
[[[abook]]]
type = abook
type = shellcommand
command = khard email --parsable
regexp = '^(?P<email>[^@]+@[^\t]+)\t+(?P<name>[^\t]+)'
ignorecase = True
[[gmail]]
realname = Felix Van der Jeugt
@ -34,8 +37,10 @@ editor_cmd = "st -e vis"
sign_by_default = True
[[[abook]]]
type = abook
type = shellcommand
command = khard email --parsable
regexp = '^(?P<email>[^@]+@[^\t]+)\t+(?P<name>[^\t]+)'
ignorecase = True
[[ugent]]
realname = Felix Van der Jeugt
@ -49,7 +54,10 @@ editor_cmd = "st -e vis"
sign_by_default = True
[[[abook]]]
type = abook
type = shellcommand
command = khard email --parsable
regexp = '^(?P<email>[^@]+@[^\t]+)\t+(?P<name>[^\t]+)'
ignorecase = True
[bindings]

41
config/khard/khard.conf Normal file
View File

@ -0,0 +1,41 @@
[addressbooks]
[[default]]
path = /data/contacts/default/
[general]
debug = no
default_action = list
editor = vis
merge_editor = vis
[contact table]
# display names by first or last name: first_name / last_name
display = first_name
# group by address book: yes / no
group_by_addressbook = no
# reverse table ordering: yes / no
reverse = no
# append nicknames to name column: yes / no
show_nicknames = yes
# show uid table column: yes / no
show_uids = yes
# sort by first or last name: first_name / last_name
sort = last_name
# localize dates: yes / no
localize_dates = yes
[vcard]
# extend contacts with your own private objects
# these objects are stored with a leading "X-" before the object name in the vcard files
# every object label may only contain letters, digits and the - character
# example:
# private_objects = Jabber, Skype, Twitter
private_objects = IBAN
# preferred vcard version: 3.0 / 4.0
preferred_version = 4.0
# Look into source vcf files to speed up search queries: yes / no
search_in_source_files = no
# skip unparsable vcard files: yes / no
skip_unparsable = no

View File

@ -50,3 +50,18 @@ url = "https://posteo.de:8443/calendars/felix.vanderjeugt/plebbb/"
username = "felix.vanderjeugt@posteo.net"
password.fetch = ["command", "pass", "other/vdirsyncer"]
[pair posteo_contacts]
a = "contacts_local"
b = "contacts_remote"
collections = ["from a", "from b"]
[storage contacts_local]
type = "filesystem"
path = "/data/contacts"
fileext = ".vcf"
[storage contacts_remote]
type = "carddav"
url = "https://posteo.de:8843/addressbooks/felix.vanderjeugt/default"
username = "felix.vanderjeugt@posteo.net"
password.fetch = ["command", "pass", "other/vdirsyncer"]