mail: Set up vdirsyncer for caldav/carddav
Set up vdirsyncer to have synchronization with my nextcloud instance. Pulls credentials from local pass set up and always gives priority to remote instances so nothing gets lost on local data issues.
This commit is contained in:
parent
88d5520b55
commit
5a52d9ec6c
1 changed files with 39 additions and 0 deletions
39
mail/.config/vdirsyncer/config
Normal file
39
mail/.config/vdirsyncer/config
Normal file
|
@ -0,0 +1,39 @@
|
|||
[general]
|
||||
status_path = "~/.local/vdirsyncer/status/"
|
||||
|
||||
[pair calendar]
|
||||
a = "calendar_local"
|
||||
b = "calendar_nextcloud"
|
||||
collections = ["from a", "from b"]
|
||||
metadata = ["displayname", "color"]
|
||||
conflict_resolution = "b wins"
|
||||
|
||||
[storage calendar_local]
|
||||
type = "filesystem"
|
||||
path = "~/documents/calendars/"
|
||||
fileext = ".ics"
|
||||
|
||||
[storage calendar_nextcloud]
|
||||
type = "caldav"
|
||||
url = "https://files.martyoeh.me/remote.php/dav/"
|
||||
username.fetch = ["shell", "pass personal/files.martyoeh.me/me | awk -F': ' '{print $2}'"]
|
||||
password.fetch = ["shell", "pass personal/files.martyoeh.me/me | head -n1"]
|
||||
|
||||
[pair contacts]
|
||||
a = "contacts_local"
|
||||
b = "contacts_nextcloud"
|
||||
collections = ["from a", "from b"]
|
||||
metadata = ["displayname", "description"]
|
||||
conflict_resolution = "b wins"
|
||||
|
||||
[storage contacts_local]
|
||||
type = "filesystem"
|
||||
path = "~/documents/contacts/"
|
||||
fileext = ".vcf"
|
||||
|
||||
[storage contacts_nextcloud]
|
||||
type = "carddav"
|
||||
url = "https://files.martyoeh.me/remote.php/dav/"
|
||||
username.fetch = ["shell", "pass personal/files.martyoeh.me/me | awk -F': ' '{print $2}'"]
|
||||
password.fetch = ["shell", "pass personal/files.martyoeh.me/me | head -n1"]
|
||||
|
Loading…
Reference in a new issue